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, testsuite] PR tree-optimization/38464 - vectorizer cost model test


Hi,

This patch fixes the testcase to check that all the three loops are
vectorized.

Checked on powerpc64-suse-linux. O.K. to apply?

Thanks,
Ira

testsuite/ChangeLog entry:

      PR tree-optimization/38464
      * gcc.dg/vect/costmodel/ppc/costmodel-slp-12.c: Check that three
loops are vectorized.

Index: testsuite/gcc.dg/vect/costmodel/ppc/costmodel-slp-12.c
===================================================================
--- testsuite/gcc.dg/vect/costmodel/ppc/costmodel-slp-12.c      (revision
142638)
+++ testsuite/gcc.dg/vect/costmodel/ppc/costmodel-slp-12.c      (working
copy)
@@ -114,7 +114,7 @@ int main (void)
   return 0;
 }

-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1
"vect"  {target { vect_strided && vect_int_mult } } } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1
"vect" {target { vect_strided && vect_int_mult } } } } */
+/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1
"vect"  {target { vect_strided && vect_int_mult } } } } */}
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3
"vect" {target { vect_strided && vect_int_mult } } } } */
 /* { 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]