re PR tree-optimization/82422 ([graphite] ICE in set_codegen_error, at graphite-isl...
authorRichard Biener <rguenther@suse.de>
Fri, 6 Oct 2017 08:23:56 +0000 (08:23 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 6 Oct 2017 08:23:56 +0000 (08:23 +0000)
2017-10-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/82422
* gcc.dg/graphite/pr82422.c: New testcase.

From-SVN: r253479

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/pr82422.c [new file with mode: 0644]

index 10ec90e807d7febe1be7ab1c66834eeec1005f73..64783cdf70b2ee92abfe89c3274274c6d89c1e1e 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-06  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/82422
+       * gcc.dg/graphite/pr82422.c: New testcase.
+
 2017-10-06  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/82421
diff --git a/gcc/testsuite/gcc.dg/graphite/pr82422.c b/gcc/testsuite/gcc.dg/graphite/pr82422.c
new file mode 100644 (file)
index 0000000..281a749
--- /dev/null
@@ -0,0 +1,13 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -floop-nest-optimize -Wno-aggressive-loop-optimizations" } */
+
+int a;
+int b[6];
+int c ()
+{
+  int d;
+  for (; d; d++)
+    b[d] = 0;
+  for (; d < 8; d++)
+    a += b[d];
+}