]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
IBM Z: gen-vect-26/28: Vectorizing without peeling is ok for Z
authorAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 5 Nov 2019 15:27:59 +0000 (15:27 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Tue, 5 Nov 2019 15:27:59 +0000 (15:27 +0000)
These tests check if loop peeling has been applied to avoid
having to vectorize unaligned loops.  On Z we do not have any
alignment requirements for vectorization so we also don't need want
the loop peeling here.

2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>

* gcc.dg/tree-ssa/gen-vect-26.c: Disable loop peeling check for
IBM Z.
* gcc.dg/tree-ssa/gen-vect-28.c: Likewise.

From-SVN: r277844

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-26.c
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-28.c

index df6b79fd5fb31c803cb66725025e41e1577756b4..7a0bedbfb309e2139a00b33b2c2082088d8448d1 100644 (file)
@@ -1,3 +1,12 @@
+2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
+
+       Backport from mainline
+       2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
+
+       * gcc.dg/tree-ssa/gen-vect-26.c: Disable loop peeling check for
+       IBM Z.
+       * gcc.dg/tree-ssa/gen-vect-28.c: Likewise.
+
 2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
 
        Backport from mainline
@@ -5,7 +14,7 @@
 
        * gcc.dg/tree-ssa/gen-vect-11.c: Add --param min-vect-loop-bound=0
        for IBM Z.
-       * gcc.dg/tree-ssa/gen-vect-11.c: Likewise.
+       * gcc.dg/tree-ssa/gen-vect-32.c: Likewise.
 
 2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
 
index 8e5f1410612b075914000dcdc643b2838ee3dcd9..b0933831ca606920e1c27670d98e2cc55c1f7006 100644 (file)
@@ -30,5 +30,6 @@ int main ()
 
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { ! avr-*-* } } } } */
-/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" { target { ! avr-*-* } } } } */
-/* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" { target { ! avr-*-* } } } } */
+/* IBM Z does not require special alignment for vectorization.  */
+/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" { target { ! { avr-*-* s390*-*-* } } } } } */
+/* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" { target { ! { avr-*-* s390*-*-* } } } } } */
index ce97e0970b517db7fe43fb80838be6bf1048c884..e35b41d03b1ed189b1f24d76b822a0afb437b433 100644 (file)
@@ -38,5 +38,6 @@ int main (void)
 
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { ! avr-*-* } } } } */
-/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" { target { ! avr-*-* } } } } */
-/* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" { target { ! avr-*-* } } } } */
+/* IBM Z does not require special alignment for vectorization.  */
+/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" { target { ! { avr-*-* s390*-*-* } } } } } */
+/* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" { target { ! { avr-*-* s390*-*-* } } } } } */