Define vect_perm for variable-length SVE
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 24 Aug 2018 13:06:56 +0000 (13:06 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 24 Aug 2018 13:06:56 +0000 (13:06 +0000)
commitf5cd4f8ceb89596be02801cd11e8dbf78fb10014
treec72d001a8699cc81b67c725ece60cadc1a6ab8cc
parent8c2f568c9a8375927efede4bfc83d6553da7f9a2
Define vect_perm for variable-length SVE

Variable-length SVE now supports enough permutes to define vect_perm.

The change to vect_perm_supported is currently a no-op because the
function is only called with a count of 3.

2018-08-24  Richard Sandiford  <richard.sandiford@arm.com>

gcc/testsuite/
* lib/target-supports.exp (vect_perm_supported): Only return
false for variable-length vectors if the permute size is not
a power of 2.
(check_effective_target_vect_perm)
(check_effective_target_vect_perm_byte)
(check_effective_target_vect_perm_short): Remove check for
variable-length vectors.
* gcc.dg/vect/slp-23.c: Add an XFAIL for variable-length SVE.
* gcc.dg/vect/slp-perm-10.c: Likewise.
* gcc.dg/vect/slp-perm-9.c: Add an XFAIL for variable-length vectors.

From-SVN: r263834
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/slp-23.c
gcc/testsuite/gcc.dg/vect/slp-perm-10.c
gcc/testsuite/gcc.dg/vect/slp-perm-9.c
gcc/testsuite/lib/target-supports.exp