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

Roger Sayle roger@eyesopen.com
Fri Nov 25 01:21:00 GMT 2005


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
--



More information about the Gcc-patches mailing list