rs6000, Add test 128-bit shifts for just the int128 type.
authorCarl Love <cel@us.ibm.com>
Wed, 16 Sep 2020 21:05:49 +0000 (16:05 -0500)
committerCarl Love <cel@us.ibm.com>
Wed, 9 Jun 2021 16:11:01 +0000 (11:11 -0500)
commitf170186446d03638cd82e37aa2a1bcf4dc1adba2
tree549c7694f5602db697c13f05765c058faf1e1f79
parent976ffcf87da321a3eead9715032e599b226fcbf7
rs6000, Add test 128-bit shifts for just the int128 type.

This patch also renames and moves the VSX_TI iterator from vsx.md to
VEC_TI in vector.md.  The uses of VEC_TI are also updated.

2021-04-29  Carl Love  <cel@us.ibm.com>

gcc/ChangeLog

* config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
* config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
(vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
(vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
* config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
uses of VSX_TI to VEC_TI.

gcc/testsuite/ChangeLog

* gcc.target/powerpc/int_128bit-runnable.c: Add shift_right, shift_left
tests.
gcc/config/rs6000/altivec.md
gcc/config/rs6000/vector.md
gcc/config/rs6000/vsx.md
gcc/testsuite/gcc.target/powerpc/int_128bit-runnable.c