diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2020-11-17 11:12:51 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2020-11-17 11:12:51 +0000 |
commit | f5647cf49f0ee861eca9d9b5c4b0333ee11e6017 (patch) | |
tree | 7d47a7d6035ee0df7cc51770d966a1989d8bf83c | |
parent | a880fcc657f0100fb5cfd1a8fd0bb7842eefdfa4 (diff) | |
download | gcc-f5647cf49f0ee861eca9d9b5c4b0333ee11e6017.zip gcc-f5647cf49f0ee861eca9d9b5c4b0333ee11e6017.tar.gz gcc-f5647cf49f0ee861eca9d9b5c4b0333ee11e6017.tar.bz2 |
testsuite: XFAIL SLP induction tests for VL vectors
We don't yet support SLP inductions for variable-length vectors,
so this patch XFAILs some associated tests.
(Inductions aren't inherently difficult to support. It just hasn't
been done yet.)
gcc/testsuite/
* gcc.dg/vect/pr97678.c: XFAIL test for SLP vectorization
for variable-length vectors.
* gcc.dg/vect/pr97835.c: Likewise.
* gcc.dg/vect/slp-49.c: Likewise.
* gcc.dg/vect/vect-outer-slp-1.c: Likewise.
* gcc.dg/vect/vect-outer-slp-2.c: Likewise.
* gcc.dg/vect/vect-outer-slp-3.c: Likewise.
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/pr97678.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/pr97835.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/slp-49.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/vect-outer-slp-1.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/vect-outer-slp-2.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/vect-outer-slp-3.c | 3 |
6 files changed, 12 insertions, 6 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/pr97678.c b/gcc/testsuite/gcc.dg/vect/pr97678.c index ebe4a35..d9ffb7a 100644 --- a/gcc/testsuite/gcc.dg/vect/pr97678.c +++ b/gcc/testsuite/gcc.dg/vect/pr97678.c @@ -26,4 +26,5 @@ main () } /* The init loop should be vectorized with SLP. */ -/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */ +/* We don't yet support SLP inductions for variable length vectors. */ +/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { xfail vect_variable_length } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/pr97835.c b/gcc/testsuite/gcc.dg/vect/pr97835.c index 5ca477b..a90c773 100644 --- a/gcc/testsuite/gcc.dg/vect/pr97835.c +++ b/gcc/testsuite/gcc.dg/vect/pr97835.c @@ -18,4 +18,5 @@ x0 (struct co *yy, long int kc, int wi, int md) } } -/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */ +/* We don't yet support SLP inductions for variable length vectors. */ +/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { xfail vect_variable_length } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/slp-49.c b/gcc/testsuite/gcc.dg/vect/slp-49.c index 3f53baf..4141a09 100644 --- a/gcc/testsuite/gcc.dg/vect/slp-49.c +++ b/gcc/testsuite/gcc.dg/vect/slp-49.c @@ -34,5 +34,6 @@ main() return 0; } -/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */ +/* We don't yet support SLP inductions for variable length vectors. */ +/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { xfail vect_variable_length } } } */ /* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" } } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-outer-slp-1.c b/gcc/testsuite/gcc.dg/vect/vect-outer-slp-1.c index 62b18bd..445157d 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-outer-slp-1.c +++ b/gcc/testsuite/gcc.dg/vect/vect-outer-slp-1.c @@ -27,5 +27,6 @@ void foo (void) /* We should vectorize this outer loop with SLP. */ /* { dg-final { scan-tree-dump "OUTER LOOP VECTORIZED" "vect" } } */ -/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */ +/* We don't yet support SLP inductions for variable length vectors. */ +/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { xfail vect_variable_length } } } */ /* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "vect" } } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-outer-slp-2.c b/gcc/testsuite/gcc.dg/vect/vect-outer-slp-2.c index 08b4fc5..ec1e103 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-outer-slp-2.c +++ b/gcc/testsuite/gcc.dg/vect/vect-outer-slp-2.c @@ -48,4 +48,5 @@ int main () } /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" } } */ -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" } } */ +/* We don't yet support SLP inductions for variable length vectors. */ +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_variable_length } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-outer-slp-3.c b/gcc/testsuite/gcc.dg/vect/vect-outer-slp-3.c index c67d369..53865d4 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-outer-slp-3.c +++ b/gcc/testsuite/gcc.dg/vect/vect-outer-slp-3.c @@ -59,4 +59,5 @@ int main () } /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" } } */ -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" } } */ +/* We don't yet support SLP inductions for variable length vectors. */ +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_variable_length } } } */ |