testsuite: XFAIL SLP induction tests for VL vectors
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 17 Nov 2020 11:12:51 +0000 (11:12 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 17 Nov 2020 11:12:51 +0000 (11:12 +0000)
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.

gcc/testsuite/gcc.dg/vect/pr97678.c
gcc/testsuite/gcc.dg/vect/pr97835.c
gcc/testsuite/gcc.dg/vect/slp-49.c
gcc/testsuite/gcc.dg/vect/vect-outer-slp-1.c
gcc/testsuite/gcc.dg/vect/vect-outer-slp-2.c
gcc/testsuite/gcc.dg/vect/vect-outer-slp-3.c

index ebe4a35bb3f17b3c95018d04cc8880fd4a3f3be5..d9ffb7a169be7a8e423c479645e987c6c2d1982b 100644 (file)
@@ -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 } } } */
index 5ca477bf806fcc9f172ebc3ea946e55aa8de1f32..a90c773eac94cbb12dda331bba56a15af3f7ae1b 100644 (file)
@@ -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 } } } */
index 3f53baf707be8cfc75a92a782923d1a85d00d912..4141a09ed97a9ceadf89d394d18c0b0226eb55d7 100644 (file)
@@ -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" } } */
index 62b18bd5764e83e569f7f874524749b8f12f02db..445157d39b5cbbe7b6842d9f14e65cc8d8a3b68e 100644 (file)
@@ -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" } } */
index 08b4fc52430326fea3a93455c7b92710328d2bb1..ec1e1036f57022716361977fb419b0806e55123d 100644 (file)
@@ -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 } } } */
index c67d3690bb4d2dda776b7d6fafd1c714a85da108..53865d4737b1333c3eb49723d35d2f0e385049a3 100644 (file)
@@ -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 } } } */