https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69714
--- Comment #26 from Bernd Schmidt <bernds at gcc dot gnu.org> --- Author: bernds Date: Tue Feb 16 21:09:43 2016 New Revision: 233473 URL: https://gcc.gnu.org/viewcvs?rev=233473&root=gcc&view=rev Log: 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. Added: branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr69714.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/testsuite/ChangeLog branches/gcc-5-branch/gcc/tree-ssa-math-opts.c
