re PR tree-optimization/77362 ([graphite] ICE in sese_build_liveouts_use w/ -O2 ...
authorRichard Biener <rguenther@suse.de>
Wed, 20 Sep 2017 11:21:23 +0000 (11:21 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 20 Sep 2017 11:21:23 +0000 (11:21 +0000)
2017-09-20  Richard Biener  <rguenther@suse.de>

PR tree-optimization/77362
* gcc.dg/graphite/pr77362.c: New testcase.

From-SVN: r253006

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

index da107c34b3d705122a48427402c3e847599478db..3ebdab9996b645e24464515fa1c9e5ddd343db18 100644 (file)
@@ -1,3 +1,8 @@
+2017-09-20  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/77362
+       * gcc.dg/graphite/pr77362.c: New testcase.
+
 2017-09-20  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/82264
diff --git a/gcc/testsuite/gcc.dg/graphite/pr77362.c b/gcc/testsuite/gcc.dg/graphite/pr77362.c
new file mode 100644 (file)
index 0000000..61b7a7d
--- /dev/null
@@ -0,0 +1,21 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -floop-nest-optimize" } */
+
+int mc[2];
+int f2, sk;
+short int hm;
+
+void
+zm (void)
+{
+  int k1;
+
+  for (k1 = 0; k1 < 2; ++k1)
+    {
+      for (sk = 0; sk < 2; ++sk)
+       mc[sk] = hm = ++f2;
+      if (hm >= 0)
+       ++hm;
+    }
+}
+