fold-const.c (fold): When seeing if D & ~C != 0 to fold (A & C) == D into 0, fold ~C.
authorKazu Hirata <kazu@cs.umass.edu>
Sun, 3 Oct 2004 15:31:54 +0000 (15:31 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 3 Oct 2004 15:31:54 +0000 (15:31 +0000)
commit24109c9f287a922dbebe358b51a19100209c0022
treeb878167fa61a2c5dbc8db3e8bac37811fef8aab1
parent0146748a019f74213a4b32ba99a9ff88a745a02a
fold-const.c (fold): When seeing if D & ~C != 0 to fold (A & C) == D into 0, fold ~C.

* fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
fold (A & C) == D into 0, fold ~C.  Similarly, for the case
where | is used instead of &.

* testsuite/gcc.dg/tree-ssa/20041002-1.c: New.

From-SVN: r88449
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/20041002-1.c [new file with mode: 0644]