Patchwork Add testcase for PR46404.

login
register
mail settings
Submitter Sebastian Pop
Date Dec. 15, 2010, 10 p.m.
Message ID <1292450424-13396-1-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/75684/
State New
Headers show

Comments

Sebastian Pop - Dec. 15, 2010, 10 p.m.
Hi,
I added the reduced testcase of PR46404 to trunk.

Sebastian

2010-12-15  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/46404
	* gcc.dg/graphite/pr46404.c: New.
---
 gcc/testsuite/ChangeLog                 |    5 +++++
 gcc/testsuite/gcc.dg/graphite/pr46404.c |   13 +++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
 create mode 100644 gcc/testsuite/gcc.dg/graphite/pr46404.c

Patch

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 09170a2..c10535c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@ 
+2010-12-15  Sebastian Pop  <sebastian.pop@amd.com>
+
+	PR tree-optimization/46404
+	* gcc.dg/graphite/pr46404.c: New.
+
 2010-12-15  Jakub Jelinek  <jakub@redhat.com>
 
 	PR fortran/46945
diff --git a/gcc/testsuite/gcc.dg/graphite/pr46404.c b/gcc/testsuite/gcc.dg/graphite/pr46404.c
new file mode 100644
index 0000000..9bdde4a
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/graphite/pr46404.c
@@ -0,0 +1,13 @@ 
+/* { dg-options "-O -fgraphite-identity -fno-tree-scev-cprop" } */
+
+int l[200];
+
+void
+foo (void)
+{
+  int i = 0;
+  for (; i < 100; i++)
+    ;
+  for (; i; i--)
+    l[i];
+}