simplify-rtx.c (simplify_binary_operation_1): Handle (xor (and A B) C) case when...
authorChung-Lin Tang <cltang@codesourcery.com>
Mon, 21 Mar 2011 07:27:03 +0000 (07:27 +0000)
committerChung-Lin Tang <cltang@gcc.gnu.org>
Mon, 21 Mar 2011 07:27:03 +0000 (07:27 +0000)
commit54833ec0a6bcc91163da4c3f7a017a2f73879cd1
tree7be61378d32c6ae04d9c2b5ed89dfb6bc55d20fd
parent2757d5ecfc14883087e062b169e8355f8cc74b19
simplify-rtx.c (simplify_binary_operation_1): Handle (xor (and A B) C) case when B and C are both constants.

2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>

* simplify-rtx.c (simplify_binary_operation_1): Handle
(xor (and A B) C) case when B and C are both constants.

testsuite/
* gcc.target/arm/xor-and.c: New.

From-SVN: r171208
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/xor-and.c [new file with mode: 0644]