diff options
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/graphite/interchange-3.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/graphite/run-id-pr47653.c | 17 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/graphite/scop-16.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/graphite/scop-17.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/graphite/scop-21.c | 2 |
6 files changed, 31 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4e0adb1..4efc523 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,15 @@ 2011-07-26 Sebastian Pop <sebastian.pop@amd.com> + PR middle-end/47653 + * gcc.dg/graphite/run-id-pr47653.c: New. + * gcc.dg/graphite/interchange-3.c: Do not use unsigned types for + induction variables. + * gcc.dg/graphite/scop-16.c: Same. + * gcc.dg/graphite/scop-17.c: Same. + * gcc.dg/graphite/scop-21.c: Same. + +2011-07-26 Sebastian Pop <sebastian.pop@amd.com> + PR middle-end/48805 * gcc.dg/graphite/id-pr48805.c: New. diff --git a/gcc/testsuite/gcc.dg/graphite/interchange-3.c b/gcc/testsuite/gcc.dg/graphite/interchange-3.c index 26ec4d9..1419749 100644 --- a/gcc/testsuite/gcc.dg/graphite/interchange-3.c +++ b/gcc/testsuite/gcc.dg/graphite/interchange-3.c @@ -12,7 +12,7 @@ double u[1782225]; static void __attribute__((noinline)) foo (int N, int *res) { - unsigned int i, j; + int i, j; double sum = 0; for (i = 0; i < N; i++) { diff --git a/gcc/testsuite/gcc.dg/graphite/run-id-pr47653.c b/gcc/testsuite/gcc.dg/graphite/run-id-pr47653.c new file mode 100644 index 0000000..b62b891 --- /dev/null +++ b/gcc/testsuite/gcc.dg/graphite/run-id-pr47653.c @@ -0,0 +1,17 @@ +/* { dg-options "-O -fstack-check=generic -ftree-pre -fgraphite-identity" } */ + +int main () +{ + int i, j; + int x[8][8]; + for (i = 0; i < 8; i++) + for (j = i; j < 8; j++) + x[i][j] = 4; + + for (i = 0; i < 8; i++) + for (j = i; j < 8; j++) + if (x[i][j] != 4) + __builtin_abort (); + + return 0; +} diff --git a/gcc/testsuite/gcc.dg/graphite/scop-16.c b/gcc/testsuite/gcc.dg/graphite/scop-16.c index 0849e86..83cbb96 100644 --- a/gcc/testsuite/gcc.dg/graphite/scop-16.c +++ b/gcc/testsuite/gcc.dg/graphite/scop-16.c @@ -6,7 +6,7 @@ int test () { int a[N][N]; int b[N][N]; - unsigned i, j; + int i, j; for (i = 0; i < N; i++) for (j = 0; j < N; j++) diff --git a/gcc/testsuite/gcc.dg/graphite/scop-17.c b/gcc/testsuite/gcc.dg/graphite/scop-17.c index ee37aea..a7dff5f 100644 --- a/gcc/testsuite/gcc.dg/graphite/scop-17.c +++ b/gcc/testsuite/gcc.dg/graphite/scop-17.c @@ -5,7 +5,7 @@ void foo (int); int test () { int a[N][N]; - unsigned i, j; + int i, j; for (i = 0; i < N; i++) for (j = 0; j < N; j++) diff --git a/gcc/testsuite/gcc.dg/graphite/scop-21.c b/gcc/testsuite/gcc.dg/graphite/scop-21.c index 5e58834..1cbad5d 100644 --- a/gcc/testsuite/gcc.dg/graphite/scop-21.c +++ b/gcc/testsuite/gcc.dg/graphite/scop-21.c @@ -3,7 +3,7 @@ void foo (int); int test () { int a[N+6]; - unsigned i; + int i; for (i = 0; i < N; i++) { |