]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR testsuite/65484 (FAIL: g++.dg/vect/pr36648.cc on powerpc64)
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Fri, 3 Feb 2017 19:06:58 +0000 (19:06 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Fri, 3 Feb 2017 19:06:58 +0000 (19:06 +0000)
2017-02-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2017-01-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/65484
* g++.dg/vect/pr36648.cc: Modify to reflect that the loop is not
vectorized on POWER unless hardware misaligned loads are
available.

From-SVN: r245164

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/vect/pr36648.cc

index 99dd282d6c6345188efa9b809f8da731be7c0203..c48f28269d02c71264e538d486395bbc675ef5c2 100644 (file)
@@ -1,3 +1,13 @@
+2017-02-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
+
+       Backport from mainline
+       2017-01-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
+
+       PR target/65484
+       * g++.dg/vect/pr36648.cc: Modify to reflect that the loop is not
+       vectorized on POWER unless hardware misaligned loads are
+       available.
+
 2017-01-26  Richard Biener  <rguenther@suse.de>
 
        Backport from mainline
index 6306b4d65404bc881bdb9aa4a43071e08d9ee5ed..6bd26b274870ac6190e5c283e03e0944645a6132 100644 (file)
@@ -17,8 +17,13 @@ Foo foo;
 
 int main() { }
 
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { !  vect_no_align } } } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { ! vect_no_align } } } } */
+/* On older powerpc hardware (POWER7 and earlier), the default flag
+   -mno-allow-movmisalign prevents vectorization.  On POWER8 and later,
+   when vect_hw_misalign is true, vectorization occurs.  For other
+   targets, ! vect_no_align is a sufficient test.  */
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { { { !  vect_no_align } && { ! powerpc*-*-* } } || { powerpc*-*-* && vect_hw_misalign } } } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { { { ! vect_no_align } && { ! powerpc*-*-* } } || { powerpc*-*-* && vect_hw_misalign } } } } } */
 /* { dg-final { cleanup-tree-dump "vect" } } */