re PR tree-optimization/71824 (ICE when compiling libiberty with Graphite loop optimi...
authorRichard Biener <rguenther@suse.de>
Wed, 8 Feb 2017 09:35:41 +0000 (09:35 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 8 Feb 2017 09:35:41 +0000 (09:35 +0000)
2017-02-08  Richard Biener  <rguenther@suse.de>

PR tree-optimization/71824
PR tree-optimization/79409
* gcc.dg/graphite/pr71824-3.c: New testcase.

From-SVN: r245274

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

index 0f0517de97a840070ae335f594f019c114adb1ae..d599c1a3274340178bcd5ea545e04fb3d6e377db 100644 (file)
@@ -1,3 +1,9 @@
+2017-02-08  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/71824
+       PR tree-optimization/79409
+       * gcc.dg/graphite/pr71824-3.c: New testcase.
+
 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/79408
diff --git a/gcc/testsuite/gcc.dg/graphite/pr71824-3.c b/gcc/testsuite/gcc.dg/graphite/pr71824-3.c
new file mode 100644 (file)
index 0000000..37e5c3b
--- /dev/null
@@ -0,0 +1,19 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-loop-distribution -floop-nest-optimize" } */
+
+struct
+{
+  int bz;
+} od, ka[2];
+
+int fw;
+
+void
+pc (void)
+{
+  for (od.bz = 0; od.bz < 2; ++od.bz)
+    {
+      ++fw;
+      ka[0] = ka[1];
+    }
+}