re PR tree-optimization/16632 (A couple fold-const.c optimizations are non-functional)
authorKazu Hirata <kazu@gcc.gnu.org>
Sun, 3 Oct 2004 15:33:20 +0000 (15:33 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 3 Oct 2004 15:33:20 +0000 (15:33 +0000)
commit807e955b1e70ed23f1c15496073432a129312eb1
tree0fad60829cd10d8cc51f066ecc425cb61b5f161b
parent24109c9f287a922dbebe358b51a19100209c0022
re PR tree-optimization/16632 (A couple fold-const.c optimizations are non-functional)

PR tree-optimization/16632
* 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 &.

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

From-SVN: r88450
gcc/ChangeLog
gcc/testsuite/ChangeLog