Testcase from pr72749
authorAlan Modra <amodra@gmail.com>
Sat, 14 Jan 2017 13:29:29 +0000 (23:59 +1030)
committerAlan Modra <amodra@gcc.gnu.org>
Sat, 14 Jan 2017 13:29:29 +0000 (23:59 +1030)
PR target/72749
* gcc.c-torture/compile/pr72749.c: New test.

From-SVN: r244466

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr72749.c [new file with mode: 0644]

index 02b877d..70ccd17 100644 (file)
@@ -1,3 +1,7 @@
+2017-01-14  Alan Modra  <amodra@gmail.com>
+
+       * gcc.c-torture/compile/pr72749.c: New test.
+
 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
 
        PR c/78304
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr72749.c b/gcc/testsuite/gcc.c-torture/compile/pr72749.c
new file mode 100644 (file)
index 0000000..2ef4d9a
--- /dev/null
@@ -0,0 +1,21 @@
+/* { dg-options "-O2 -fsched2-use-superblocks" } */
+
+int as;
+
+void
+ji (int *x4)
+{
+  if (0)
+    {
+      unsigned int pv;
+
+      while (as < 0)
+        {
+          for (*x4 = 0; *x4 < 1; ++(*x4))
+yj:
+            x4 = (int *)&pv;
+          ++as;
+        }
+    }
+  goto yj;
+}