This is the mail archive of the gcc-patches@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]

Re: [PATCH] Have fold convert (~a) == C to a == ~C (for C being constant)


On Thu, 24 Nov 2005, Andrew Pinski wrote:
> 	* fold-const.c (fold_binary): Fold (~a) == C to a == ~C
> 	for C being INTEGER_CST.  Likewise for !=.
>
> 	* tree-ssa/pr24990-1.c: New test.

This is OK for mainline too.

Roger
--


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