Fix bswap optimization on big-endian (PR69714, 67781).
authorBernd Schmidt <bernds@redhat.com>
Tue, 16 Feb 2016 14:42:59 +0000 (14:42 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Tue, 16 Feb 2016 14:42:59 +0000 (14:42 +0000)
commit6d87c306c6a44f8db81a9a9f2f5de4d943d5e57f
treedbf7d36597ac5ae73d49e21deb2e911e80dc3d48
parent8f3304d019bd1f9a8eb08b9dba3a430a59f52994
Fix bswap optimization on big-endian (PR69714, 67781).

PR tree-optimization/69714
* tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
Return NULL if we have irrelevant high bytes on BIG_ENDIAN.

testsuite/
PR tree-optimization/69714
* gcc.dg/torture/pr69714.c: New test.

From-SVN: r233452
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr69714.c [new file with mode: 0644]
gcc/tree-ssa-math-opts.c