~X & Y to X ^ Y in some cases
authorMarc Glisse <marc.glisse@inria.fr>
Tue, 17 May 2016 17:54:28 +0000 (19:54 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Tue, 17 May 2016 17:54:28 +0000 (17:54 +0000)
commitd982c5b7b73b9bed5d63d614dc2ae4f17d49eb74
tree1b1b1464fa56a7237a510a32cf422ab593a0209f
parent0139ba9332f80bad92794bcd4bfe360f2cfc42a4
~X & Y to X ^ Y in some cases

2016-05-17  Marc Glisse  <marc.glisse@inria.fr>

gcc/
* match.pd (~X & Y): New transformation.

gcc/testsuite/
* gcc.dg/tree-ssa/pr69270.c: Adjust.
* gcc.dg/tree-ssa/andnot-1.c: New testcase.

From-SVN: r236337
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/andnot-1.c [new file with mode: 0644]