re PR tree-optimization/67781 (wrong code generated on big-endian with -O1 -fexpensiv...
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Fri, 8 Jan 2016 09:21:19 +0000 (09:21 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Fri, 8 Jan 2016 09:21:19 +0000 (09:21 +0000)
commit80e9b3aaac461dac31b8a3990ac6e820d5bce54d
treed1c49541c8f65f13e5506de1ce8fd3b3535f1404
parent262a363ff9f03262fe5a8420fa53bd10cb4306d6
re PR tree-optimization/67781 (wrong code generated on big-endian with -O1 -fexpensive-optimizations)

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.

From-SVN: r232154
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr67781.c [new file with mode: 0644]
gcc/tree-ssa-math-opts.c