This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR42917 (make lambda-code VTA aware)
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: jakub at redhat dot com, gcc-patches at gcc dot gnu dot org
- Cc: dberlin at dberlin dot org
- Date: Wed, 10 Mar 2010 10:52:13 -0400
- Subject: Re: PR42917 (make lambda-code VTA aware)
- References: <20100310143503.GA12238@redhat.com>
Whoops, forgot the test.
Index: testsuite/gcc.dg/pr42917.c
===================================================================
--- testsuite/gcc.dg/pr42917.c (revision 0)
+++ testsuite/gcc.dg/pr42917.c (revision 0)
@@ -0,0 +1,16 @@
+/* { dg-do compile } */
+/* { dg-options "-O1 -ftree-loop-linear -fcompare-debug -fdump-tree-ltrans" } */
+
+extern int A[];
+
+void
+foo ()
+{
+ int i, j;
+ for (i = 0; i < 4; i++)
+ for (j = 255; j >= 0; j--)
+ A[j] = 0;
+}
+
+/* { dg-final { scan-tree-dump "Successfully transformed loop" "ltrans" } } */
+/* { dg-final { cleanup-tree-dump "ltrans" } } */