This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Have fold convert (~a) == C to a == ~C (for C being constant)
- From: Roger Sayle <roger at eyesopen dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 24 Nov 2005 16:30:55 -0700 (MST)
- Subject: 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
--