aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/graphite/pr82421.c21
2 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1021c6a..10ec90e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..5da1636
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/graphite/pr82421.c
@@ -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;
+ }
+}