Go to file
Marc Glisse 287522613d Simplify X * C1 == C2 with wrapping overflow
Odd numbers are invertible in Z / 2^n Z, so X * C1 == C2 can be rewritten
as X == C2 * inv(C1) when overflow wraps.

mod_inv should probably be updated to better match the other wide_int
functions, but that's a separate issue.

2020-08-10  Marc Glisse  <marc.glisse@inria.fr>

	PR tree-optimization/95433
	* match.pd (X * C1 == C2): Handle wrapping overflow.
	* expr.c (maybe_optimize_mod_cmp): Qualify call to mod_inv.
	(mod_inv): Move...
	* wide-int.cc (mod_inv): ... here.
	* wide-int.h (mod_inv): Declare it.

	* gcc.dg/tree-ssa/pr95433-2.c: New file.
2020-08-10 12:53:01 +02:00
config Daily bump. 2020-07-31 00:16:26 +00:00
contrib Daily bump. 2020-07-30 00:16:24 +00:00
fixincludes
gcc Simplify X * C1 == C2 with wrapping overflow 2020-08-10 12:53:01 +02:00
gnattools
gotools
include Daily bump. 2020-08-04 00:16:24 +00:00
INSTALL
intl
libada
libatomic
libbacktrace Daily bump. 2020-07-31 00:16:26 +00:00
libcc1 Daily bump. 2020-07-31 00:16:26 +00:00
libcpp Daily bump. 2020-07-31 00:16:26 +00:00
libdecnumber Daily bump. 2020-07-31 00:16:26 +00:00
libffi
libgcc Daily bump. 2020-08-04 00:16:24 +00:00
libgfortran Daily bump. 2020-08-04 00:16:24 +00:00
libgo libgo: update to Go1.15rc2 release 2020-08-07 17:22:33 -07:00
libgomp Daily bump. 2020-08-09 00:16:35 +00:00
libhsail-rt
libiberty Daily bump. 2020-08-04 00:16:24 +00:00
libitm
libobjc
liboffloadmic
libphobos
libquadmath
libsanitizer
libssp
libstdc++-v3 libstdc++: Use _wstat64 for Windows [PR 95749] 2020-08-10 11:10:26 +01:00
libvtv
lto-plugin Daily bump. 2020-07-31 00:16:26 +00:00
maintainer-scripts
zlib
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
ar-lib
ChangeLog Daily bump. 2020-07-31 00:16:26 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure
configure.ac
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS MAINTAINERS: Add myself for write after approval 2020-07-30 13:17:06 +00:00
Makefile.def
Makefile.in
Makefile.tpl
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
README
symlink-tree
test-driver
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.