rs6000/testsuite: Allow xxperm* instead of only vperm*
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 8 Jun 2020 22:34:21 +0000 (22:34 +0000)
committerSegher Boessenkool <segher@kernel.crashing.org>
Tue, 9 Jun 2020 00:59:12 +0000 (00:59 +0000)
commitdf2c0060e5d1e0a37001b93f36e9245bb75ef33b
treefac8bc6246fe61eb9297a5946ca792a4820e96d6
parent2c455ae06c0b46a6a27be3a6bd869384758e4707
rs6000/testsuite: Allow xxperm* instead of only vperm*

Some testcases failed (esp. with --with-cpu=power9) after my change to
prefer xxperm over vperm when all else is equal.  Fix that.  (This also
tightens the relevant REs somewhat).

2020-06-09  Segher Boessenkool  <segher@kernel.crashing.org>

gcc/testsuite/
* gcc.target/powerpc/fold-vec-perm-char.c: Allow both vperm/vpermr and
xxperm/xxpermr.
* gcc.target/powerpc/fold-vec-perm-double.c: Ditto.
* gcc.target/powerpc/fold-vec-perm-float.c: Ditto.
* gcc.target/powerpc/fold-vec-perm-int.c: Ditto.
* gcc.target/powerpc/fold-vec-perm-longlong.c: Ditto.
* gcc.target/powerpc/fold-vec-perm-pixel.c: Ditto.
* gcc.target/powerpc/fold-vec-perm-short.c: Ditto.
* gcc.target/powerpc/lvsl-lvsr.c: Ditto.
* gcc.target/powerpc/vec-mult-char-2.c: Ditto.
* gcc.target/powerpc/vsx-vector-6.p9.c: Also allow xxpermr.
gcc/testsuite/gcc.target/powerpc/fold-vec-perm-char.c
gcc/testsuite/gcc.target/powerpc/fold-vec-perm-double.c
gcc/testsuite/gcc.target/powerpc/fold-vec-perm-float.c
gcc/testsuite/gcc.target/powerpc/fold-vec-perm-int.c
gcc/testsuite/gcc.target/powerpc/fold-vec-perm-longlong.c
gcc/testsuite/gcc.target/powerpc/fold-vec-perm-pixel.c
gcc/testsuite/gcc.target/powerpc/fold-vec-perm-short.c
gcc/testsuite/gcc.target/powerpc/lvsl-lvsr.c
gcc/testsuite/gcc.target/powerpc/vec-mult-char-2.c
gcc/testsuite/gcc.target/powerpc/vsx-vector-6.p9.c