From: spop Date: Wed, 12 Aug 2009 14:25:32 +0000 (+0000) Subject: Add interchange testcase. X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=9daa88108a80798c2b10d58fed3a64cfba88e613 Add interchange testcase. 2009-08-11 Sebastian Pop * 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 --- diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index bb1d3ad1b7e..4c9577f39d0 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,3 +1,7 @@ +2009-08-11 Sebastian Pop + + * testsuite/gcc.dg/graphite/interchange-9.c: New. + 2009-08-05 Konrad Trifunovic Sebastian Pop @@ -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 * graphite-poly.c (print_pbb): Add parentheses in the pretty print. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 11309d89c98..141036a1437 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,7 +1,11 @@ +2009-08-12 Sebastian Pop + + * gcc.dg/graphite/interchange-9.c: New. + 2009-08-12 Richard Guenther - + PR rtl-optimization/41033 - * gcc.dg/pr41033.c: New test. + * gcc.dg/pr41033.c: New test. 2009-08-11 Janus Weil diff --git a/gcc/testsuite/gcc.dg/graphite/interchange-9.c b/gcc/testsuite/gcc.dg/graphite/interchange-9.c new file mode 100644 index 00000000000..f728d6c5cdc --- /dev/null +++ b/gcc/testsuite/gcc.dg/graphite/interchange-9.c @@ -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" } } */