Patchwork [5/6] Add testcase for PR46215.

login
register
mail settings
Submitter Sebastian Pop
Date Jan. 18, 2011, 8:51 p.m.
Message ID <1295383896-27122-6-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/79358/
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/46215
	* gcc.dg/graphite/pr46215.c: New.
---
 gcc/ChangeLog.graphite                  |    5 +++++
 gcc/testsuite/gcc.dg/graphite/pr46215.c |   12 ++++++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 gcc/testsuite/gcc.dg/graphite/pr46215.c

Patch

diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 267b276..03a9e56 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/46215
+	* gcc.dg/graphite/pr46215.c: New.
+
+2011-01-18  Sebastian Pop  <sebastian.pop@amd.com>
+
 	PR tree-optimization/46168
 	* gcc.dg/graphite/pr46168.c: New.
 
diff --git a/gcc/testsuite/gcc.dg/graphite/pr46215.c b/gcc/testsuite/gcc.dg/graphite/pr46215.c
new file mode 100644
index 0000000..cf7b07f
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/graphite/pr46215.c
@@ -0,0 +1,12 @@ 
+/* { dg-do compile } */
+/* { dg-options "-O -fstrict-overflow -fno-tree-ch -ftree-loop-linear" } */
+
+extern int y[], x1[], x2[];
+void
+foo (long n)
+{
+  int i, j;
+  for (i = 0; i < n; i++)
+    for (j = 0; j < n; j += 2)
+      y[i] = x1[i + j] * x2[i + j];
+}