This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, testsuite] PR tree-optimization/38464 - vectorizer cost model test
- From: Ira Rosen <IRAR at il dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Janis Johnson <janis187 at us dot ibm dot com>
- Date: Wed, 10 Dec 2008 09:46:24 +0200
- Subject: [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" } } */