[PATCH, testsuite]: Add testcase for PR tree-optimization/19910
Uros Bizjak
ubizjak@gmail.com
Fri Jul 20 11:39:00 GMT 2007
Hello!
This failure magically dissapeared on mainline. The reduced testcase
from the PR was added to testsuite, so we will know when failure
re-appears. Testcase was tested on i686-pc-linux-gnu.
2007-07-20 Uros Bizjak <ubizjak@gmail.com>
PR tree-optimization/19910
* gcc.dg/pr19910.c: New test.
Uros.
Index: gcc.dg/pr19910.c
===================================================================
--- gcc.dg/pr19910.c (revision 0)
+++ gcc.dg/pr19910.c (revision 126799)
@@ -0,0 +1,16 @@
+/* Contributed by Volker Reichelt <reichelt@gcc.gnu.org>. */
+
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-loop-linear" } */
+
+int a[3];
+
+void foo()
+{
+ int i, j;
+
+ for (i = 1; i >= 0; --i)
+ for (j = i; j >= 0; --j)
+ a[i+j] = 0;
+}
+
More information about the Gcc-patches
mailing list