re PR tree-optimization/15458 (Combine ~ and ^.)
authorRoger Sayle <roger@eyesopen.com>
Sun, 29 Oct 2006 17:51:07 +0000 (17:51 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sun, 29 Oct 2006 17:51:07 +0000 (17:51 +0000)
commitf8ed9a1c654104efd3cc124f52a4e14f396b43ad
treeb49a8dec3cf8d233b45cd54501b107cf1aa58844
parent0f8bc3e1736a1b5b8195f0cb968511ca36a17c19
re PR tree-optimization/15458 (Combine ~ and ^.)

PR tree-optimization/15458
* fold-const.c (fold_binary): Optimize ~X ^ C as X ^ ~C, where C
is a constant.

* gcc.dg/fold-xornot-1.c: New test case.

From-SVN: r118152
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-xornot-1.c [new file with mode: 0644]