re PR target/86731 (Miscompiles vec_sl at -O3 with -fwrapv on ppc64el)
authorWill Schmidt <will_schmidt@vnet.ibm.com>
Thu, 6 Sep 2018 19:47:06 +0000 (19:47 +0000)
committerWill Schmidt <willschm@gcc.gnu.org>
Thu, 6 Sep 2018 19:47:06 +0000 (19:47 +0000)
commitbd46d32c51acb745fe230994f7b5a2ac4db0ce8c
tree9526a48d88ef483848eb954d2462c8140d3780f3
parent423c2a269e1c6bb84ead150eb4c3bda5afd0801c
re PR target/86731 (Miscompiles vec_sl at -O3 with -fwrapv on ppc64el)

[gcc]

2018-09-06  Will Schmidt  <will_schmidt@vnet.ibm.com>

PR target/86731
* config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Update logic
around folding of vec_sl to handle out of range shift values.

[testsuite]

2018-08-15  Will Schmidt  <will_schmidt@vnet.ibm.com>

PR target/86731
* gcc.target/powerpc/pr86731.c: New test.
* gcc.target/powerpc/pr86731-longlong.c: New test.
* gcc.target/powerpc/pr86731-fwrapv.c: New test.
* gcc.target/powerpc/pr86731-fwrapv-longlong.c: New test.
* gcc.target/powerpc/pr86731-nogimplefold.c: New test.
* gcc.target/powerpc/pr86731-nogimplefold-longlong.c: New test.

From-SVN: r264150
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr86731-fwrapv-longlong.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr86731-fwrapv.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr86731-longlong.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr86731-nogimplefold-longlong.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr86731-nogimplefold.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr86731.c [new file with mode: 0644]