re PR tree-optimization/14752 ([tree-ssa] "~a" should be changed to "a" if used in...
authorRoger Sayle <roger@eyesopen.com>
Tue, 28 Feb 2006 21:31:29 +0000 (21:31 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 28 Feb 2006 21:31:29 +0000 (21:31 +0000)
commitc457fcec8e54df75ee6c133a79cee1417523af59
tree8d1748fbeb1a55f369adfeaebb8d0d24b433d2d2
parent63292ebfb4150f957217ca6243dd6de458242591
re PR tree-optimization/14752 ([tree-ssa] "~a" should be changed to "a" if used in the condition of an if statement)

PR middle-end/14752
* c-common.c (c_common_truthvalue_conversion) <MINUS_EXPR,
BIT_XOR_EXPR, BIT_AND_EXPR>: Delete.  Let fold optimize these
cases via the construction of "expr != 0".

* gcc.dg/fold-eqandshift-2.c: New test case.

From-SVN: r111575
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-eqandshift-2.c [new file with mode: 0644]