PR rtl-optimization/55177
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 May 2013 06:46:11 +0000 (06:46 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 May 2013 06:46:11 +0000 (06:46 +0000)
commitfe081106200836364b24d057a3e11baeb82ca3ff
tree76784853bcad116d42b13a68d164909e4c2f1ad4
parent8b7fd76d515e46db85e599325e29ae7814961d98
PR rtl-optimization/55177
* simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
(simplify_byte_swapping_operation): New.
(simplify_binary_operation_1): Call it for AND, IOR and XOR.
(simplify_relational_operation_1): Deal with BSWAP.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199278 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtin-bswap-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/builtin-bswap-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/builtin-bswap-8.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/builtin-bswap-9.c [new file with mode: 0644]