re PR tree-optimization/82421 ([graphite] ICE: tree check: expected ssa_name, have...
authorRichard Biener <rguenther@suse.de>
Fri, 6 Oct 2017 08:20:58 +0000 (08:20 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 6 Oct 2017 08:20:58 +0000 (08:20 +0000)
2017-10-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/82421
* gcc.dg/graphite/pr82421.c: New testcase.

From-SVN: r253478

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

index 1021c6ab563c590ff134a9a31fb238f4e871208e..10ec90e807d7febe1be7ab1c66834eeec1005f73 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-06  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/82421
+       * gcc.dg/graphite/pr82421.c: New testcase.
+
 2017-10-06  Jakub Jelinek  <jakub@redhat.com>
 
        PR c/82437
diff --git a/gcc/testsuite/gcc.dg/graphite/pr82421.c b/gcc/testsuite/gcc.dg/graphite/pr82421.c
new file mode 100644 (file)
index 0000000..5da1636
--- /dev/null
@@ -0,0 +1,21 @@
+/* { dg-do compile } */
+/* { dg-options "-O -floop-nest-optimize" } */
+
+int pc;
+
+void
+qy (int l9)
+{
+  int tw = 4;
+  int fb[tw];
+
+  while (l9 < 1)
+    {
+      int dr;
+
+      pc = fb[2];
+      for (dr = 0; dr < tw; ++dr)
+       fb[dr] = 0;
+      ++l9;
+    }
+}