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
This commit is contained in:
Kazu Hirata 2004-10-03 15:33:20 +00:00
parent 24109c9f28
commit 807e955b1e
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
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 &.

View File

@ -1,5 +1,6 @@
2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
PR tree-optimization/16632
* gcc.dg/tree-ssa/20041002-1.c: New.
2004-10-03 Paul Brook <paul@codesourcery.com>