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]

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


Author: rguenth
Date: Tue May  8 12:50:18 2012
New Revision: 187280

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187280
Log:
2012-05-08  Richard Guenther  <rguenther@suse.de>

	* fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
	to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.

	* gcc.dg/fold-bitand-4.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/fold-bitand-4.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


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