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

sayle@gcc.gnu.org sayle@gcc.gnu.org
Tue Mar 28 17:55:00 GMT 2006


Author: sayle
Date: Tue Mar 28 17:55:26 2006
New Revision: 112459

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112459
Log:

	* fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
	the equivalent ~X & Y, and the symmetry related transformations.
	(fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as 
	~X & Y, and symmetry related transforms.

	* gcc.dg/fold-andxor-1.c: New test case.
	* gcc.dg/fold-xorand-1.c: Likewise.


Added:
    trunk/gcc/testsuite/gcc.dg/fold-andxor-1.c
    trunk/gcc/testsuite/gcc.dg/fold-xorand-1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list