Add interchange testcase.
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Aug 2009 14:25:32 +0000 (14:25 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Aug 2009 14:25:32 +0000 (14:25 +0000)
2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>

* testsuite/gcc.dg/graphite/interchange-9.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150688 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog.graphite
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/interchange-9.c [new file with mode: 0644]

index bb1d3ad..4c9577f 100644 (file)
@@ -1,3 +1,7 @@
+2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * testsuite/gcc.dg/graphite/interchange-9.c: New.
+
 2009-08-05  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
            Sebastian Pop  <sebastian.pop@amd.com>
 
@@ -41,7 +45,7 @@
        (restore_scattering): New.
        * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
        Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
-       
+
 2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
 
        * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
index 11309d8..141036a 100644 (file)
@@ -1,7 +1,11 @@
+2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * gcc.dg/graphite/interchange-9.c: New.
+
 2009-08-12  Richard Guenther  <rguenther@suse.de>
-    
+
        PR rtl-optimization/41033
-       * gcc.dg/pr41033.c: New test. 
+       * gcc.dg/pr41033.c: New test.
 
 2009-08-11  Janus Weil  <janus@gcc.gnu.org>
 
diff --git a/gcc/testsuite/gcc.dg/graphite/interchange-9.c b/gcc/testsuite/gcc.dg/graphite/interchange-9.c
new file mode 100644 (file)
index 0000000..f728d6c
--- /dev/null
@@ -0,0 +1,14 @@
+int
+foo (int *x)
+{
+  int i, j;
+  int sum = 0;
+
+  for (j = 0;  j < 10000; ++j)
+    for (i = 0;  i < 10000; ++i)
+      sum += x[10000 * i + j];
+  return sum;
+}
+
+/* { dg-final { scan-tree-dump-times "will be interchanged" 1 "graphite" { xfail *-*-* } } } */ 
+/* { dg-final { cleanup-tree-dump "graphite" } } */