testsuite: XFAIL some SLP reduction tests for VLA SVE
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 17 Nov 2020 11:12:50 +0000 (11:12 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 17 Nov 2020 11:12:50 +0000 (11:12 +0000)
commita880fcc657f0100fb5cfd1a8fd0bb7842eefdfa4
tree289b8106f2854407a767098be2912c0b2b487568
parente9cea0d6c83929a3f03c73060b422bdc939f6c57
testsuite: XFAIL some SLP reduction tests for VLA SVE

For variable-length SVE, we can only use SLP for N scalars of type
T if the number of Ts in a vector is a multiple of N.  For ints
this means that N must be 4 or 2, so this patch XFAILs two tests
for N==8.

The exact limit seems inherently target-specific -- variable-length
vectors with a 256-bit granule would work fine -- so I used aarch64_sve
selectors on the XFAILs.

gcc/testsuite/
* gcc.dg/vect/slp-reduc-4.c: XFAIL test for SLP vectorization
for variable-length SVE.
* gcc.dg/vect/slp-reduc-7.c: Likewise.
gcc/testsuite/gcc.dg/vect/slp-reduc-4.c
gcc/testsuite/gcc.dg/vect/slp-reduc-7.c