re PR tree-optimization/55177 (missed optimizations with __builtin_bswap)
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 24 May 2013 06:46:11 +0000 (06:46 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 24 May 2013 06:46:11 +0000 (06:46 +0000)
commitb17c024fa920895a860c675836e98fc49c01e9ce
tree76784853bcad116d42b13a68d164909e4c2f1ad4
parentd0c70325c9ee2767b87cf7f104ab34ba8e316a4e
re PR tree-optimization/55177 (missed optimizations with __builtin_bswap)

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.

From-SVN: r199278
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]