This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r242638 - in /trunk/gcc: ChangeLog fold-const.c...


Author: glisse
Date: Sun Nov 20 15:32:37 2016
New Revision: 242638

URL: https://gcc.gnu.org/viewcvs?rev=242638&root=gcc&view=rev
Log:
Simplify X /[ex] 8 == 0

2016-11-20  Marc Glisse  <marc.glisse@inria.fr>

gcc/
	* fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
	* match.pd (A /[ex] B CMP C): New simplifications.

gcc/testsuite/
	* gcc.dg/tree-ssa/cmpexactdiv.c: New file.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/cmpexactdiv.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/match.pd
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]