This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, committed] Fix PR testsuite/40475


Hi,

This patch fixes vectorizer tests: we expect outer-loop vectorization to
fail on targets without misalignment support, since versioning is not yet
supported for outer-loops.

Tested by HJ on Linux/ia64 and on x86_64-suse-linux.

Committed as obvious.

Ira

testsuite/ChangeLog:

      PR testsuite/40475
      * gcc.dg/vect/vect-nest-cycle-1.c: Fail to vectorize on targets
      without misalignment support.
      * gcc.dg/vect/vect-nest-cycle-2.c: Likewise.

Index: testsuite/gcc.dg/vect/vect-nest-cycle-1.c
===================================================================
--- testsuite/gcc.dg/vect/vect-nest-cycle-1.c   (revision 148757)
+++ testsuite/gcc.dg/vect/vect-nest-cycle-1.c   (working copy)
@@ -43,6 +43,6 @@
   return 0;
 }

-/* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" } }
*/
+/* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1
"vect" { xfail vect_no_align } } } */
 /* { dg-final { cleanup-tree-dump "vect" } } */

Index: testsuite/gcc.dg/vect/vect-nest-cycle-2.c
===================================================================
--- testsuite/gcc.dg/vect/vect-nest-cycle-2.c   (revision 148757)
+++ testsuite/gcc.dg/vect/vect-nest-cycle-2.c   (working copy)
@@ -43,6 +43,6 @@
   return 0;
 }

-/* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" } }
*/
+/* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1
"vect" { xfail vect_no_align } } } */
 /* { dg-final { cleanup-tree-dump "vect" } } */



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]