re PR middle-end/63568 (Missed optimization (a & ~mask) | (b & mask) = a ^ ((a ^...
authorMarek Polacek <polacek@redhat.com>
Wed, 17 Dec 2014 11:48:33 +0000 (11:48 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 17 Dec 2014 11:48:33 +0000 (11:48 +0000)
commitf52baa7b6e1c62c273a2f1ffe045640ec90d6e6a
tree2e29b1533f3226e100e504279cc9c7425fa26b14
parent4c57980f9d30e6947025424536eeed42bf6e1239
re PR middle-end/63568 (Missed optimization (a & ~mask) | (b & mask) = a ^ ((a ^ b) & mask))

PR middle-end/63568
* match.pd: Add (x & ~m) | (y & m) -> ((x ^ y) & m) ^ x pattern.

* gcc.dg/pr63568.c: New test.

From-SVN: r218816
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr63568.c [new file with mode: 0644]