Patchwork [22/44] Add testcase for PR45230.

login
register
mail settings
Submitter Sebastian Pop
Date Sept. 30, 2010, 6:01 p.m.
Message ID <1285869696-10915-23-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/66210/
State New
Headers show

Comments

Sebastian Pop - Sept. 30, 2010, 6:01 p.m.
From: spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>

2010-08-20  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/45230
	* gcc.dg/graphite/id-pr45230.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/graphite@163432 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog.graphite                     |    5 +++++
 gcc/testsuite/ChangeLog                    |    5 +++++
 gcc/testsuite/gcc.dg/graphite/id-pr45230.c |   14 ++++++++++++++
 3 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100644 gcc/testsuite/gcc.dg/graphite/id-pr45230.c

Patch

diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 0cc7fa0..e46a6cb 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,5 +1,10 @@ 
 2010-08-20  Sebastian Pop  <sebastian.pop@amd.com>
 
+	PR middle-end/45230
+	* gcc.dg/graphite/id-pr45230.c: New.
+
+2010-08-20  Sebastian Pop  <sebastian.pop@amd.com>
+
 	* tree-scalar-evolution.c (instantiate_array_ref): New.
 	(instantiate_scev_r): Also handle ARRAY_REFs.
 
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index a6a42ab..ca63051 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@ 
 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
 
+	PR middle-end/45230
+	* gcc.dg/graphite/id-pr45230.c: New.
+
+2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
+
 	* gcc.dg/graphite/graphite.exp: Add compile rules for vect-* files.
 	* gfortran.dg/graphite/graphite.exp: Same.
 	* gcc.dg/graphite/vect-pr43423.c: New.
diff --git a/gcc/testsuite/gcc.dg/graphite/id-pr45230.c b/gcc/testsuite/gcc.dg/graphite/id-pr45230.c
new file mode 100644
index 0000000..80f6769
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/graphite/id-pr45230.c
@@ -0,0 +1,14 @@ 
+unsigned char buf[10];
+main ()
+{
+  unsigned off1, len, i;
+  unsigned char *p1;
+  for (len = 0; len < 8; len++)
+    {
+      p1 = buf;
+      for (i = 0; i < off1; i++)
+	*p1++ = '\0';
+      for (i = 0; i < len; i++)
+	*p1++ = 'a';
+    }
+}