testsuite: Fix gcc.dg/vect/bb-slp-39.c on IBM Z
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Wed, 21 Apr 2021 06:27:29 +0000 (08:27 +0200)
committerStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Wed, 21 Apr 2021 06:27:29 +0000 (08:27 +0200)
On IBM Z the aliasing stores are realized through one element vector
instructions, if no cost model for vectorization is used which is the
default according to vect.exp.  Fixed by changing the number of times
the pattern must be found in the dump.

gcc/testsuite/ChangeLog:

* gcc.dg/vect/bb-slp-39.c: Change number of times the pattern
must match for target IBM Z only.

gcc/testsuite/gcc.dg/vect/bb-slp-39.c

index 255bb10..ee596cf 100644 (file)
@@ -16,4 +16,5 @@ void foo (double *p)
 }
 
 /* See that we vectorize three SLP instances.  */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3 "slp2" } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3 "slp2" { target { ! s390*-*-* } } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 5 "slp2" { target {   s390*-*-* } } } } */