re PR target/79963 (vec_eq_any extracts wrong CR bit when compiling with -mcpu=power9)
authorKelvin Nilsen <kelvin@gcc.gnu.org>
Mon, 20 Mar 2017 18:05:00 +0000 (18:05 +0000)
committerKelvin Nilsen <kelvin@gcc.gnu.org>
Mon, 20 Mar 2017 18:05:00 +0000 (18:05 +0000)
commitb0ba96c2f1c648533eba004d93a29a11ee51b2f0
treedb79f457ccf30952440ecc5168f8b9114d3f2542
parentdd629845b0931912853a26bf8f8e05adf9f048a2
re PR target/79963 (vec_eq_any extracts wrong CR bit when compiling with -mcpu=power9)

gcc/testsuite/ChangeLog:

2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>

PR target/79963
* gcc.target/powerpc/vsu/vec-any-eq-10.c: Add scan-assembler
directive to assure selection of proper bit using rlwinm insn.
* gcc.target/powerpc/vsu/vec-any-eq-14.c: Likewise.
* gcc.target/powerpc/vsu/vec-any-eq-7.c: Likewise.
* gcc.target/powerpc/vsu/vec-any-eq-8.c: Likewise.
* gcc.target/powerpc/vsu/vec-any-eq-9.c: Likewise.

gcc/ChangeLog:

2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>

PR target/79963
* config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
__POWER9_VECTOR__ #ifdef control, change template definition to
use Power9-specific built-in function.
(vec_any_eq): Likewise.
* config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
to control outcomes from this test.
(vector_ae_<mode>p): For VEC_F modes, likewise.

From-SVN: r246287
gcc/ChangeLog
gcc/config/rs6000/altivec.h
gcc/config/rs6000/vector.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/vsu/vec-any-eq-10.c
gcc/testsuite/gcc.target/powerpc/vsu/vec-any-eq-14.c
gcc/testsuite/gcc.target/powerpc/vsu/vec-any-eq-7.c
gcc/testsuite/gcc.target/powerpc/vsu/vec-any-eq-8.c
gcc/testsuite/gcc.target/powerpc/vsu/vec-any-eq-9.c