Patchwork [4/6] Add testcase for PR46168.

login
register
mail settings
Submitter Sebastian Pop
Date Jan. 18, 2011, 8:51 p.m.
Message ID <1295383896-27122-5-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/79357/
State New
Headers show

Comments

Sebastian Pop - Jan. 18, 2011, 8:51 p.m.
2011-01-18  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/46168
	* gcc.dg/graphite/pr46168.c: New.
---
 gcc/ChangeLog.graphite                  |    5 +++++
 gcc/testsuite/gcc.dg/graphite/pr46168.c |   15 +++++++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 gcc/testsuite/gcc.dg/graphite/pr46168.c

Patch

diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 4863236..267b276 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,5 +1,10 @@ 
 2011-01-18  Sebastian Pop  <sebastian.pop@amd.com>
 
+	PR tree-optimization/46168
+	* gcc.dg/graphite/pr46168.c: New.
+
+2011-01-18  Sebastian Pop  <sebastian.pop@amd.com>
+
 	PR tree-optimization/43657
 	* gcc.dg/graphite/pr43657.c: New.
 
diff --git a/gcc/testsuite/gcc.dg/graphite/pr46168.c b/gcc/testsuite/gcc.dg/graphite/pr46168.c
new file mode 100644
index 0000000..28b4841
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/graphite/pr46168.c
@@ -0,0 +1,15 @@ 
+/* { dg-do compile } */
+/* { dg-options "-O -ftree-loop-linear" } */
+
+int
+foo (int a[4096], int mi, int mj)
+{
+  int i, j, i16;
+  for (i = 0; i < mi; i++)
+    {
+      i16 = i + 16;
+      for (j = 0; j < mj; j++)
+	i16 = a[j] == i16;
+    }
+  return i16;
+}