[Bug tree-optimization/67781] [5 Regression] wrong code generated on big-endian with -O1 -fexpensive-optimizations
thopre01 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 21 08:30:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67781
--- Comment #15 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
Author: thopre01
Date: Thu Jan 21 08:29:28 2016
New Revision: 232664
URL: https://gcc.gnu.org/viewcvs?rev=232664&root=gcc&view=rev
Log:
2016-01-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
Backport from mainline
2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
gcc/
PR tree-optimization/67781
* tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
and cmpnop in two steps: first the ones not accessed in original
gimple expression in a endian independent way and then the ones not
accessed in the final result in an endian-specific way.
gcc/testsuite/
PR tree-optimization/67781
* gcc.c-torture/execute/pr67781.c: New file.
Added:
branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr67781.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
More information about the Gcc-bugs
mailing list