| Index: gcc/gcc/testsuite/gcc.dg/graphite/block-0.c
|
| diff --git a/gcc/gcc/testsuite/gcc.dg/graphite/block-0.c b/gcc/gcc/testsuite/gcc.dg/graphite/block-0.c
|
| index 627f044fc14ce57142be3e9f5eb04e5fc12f13bd..af023634226f6b27f38ea62a944f34a668801782 100644
|
| --- a/gcc/gcc/testsuite/gcc.dg/graphite/block-0.c
|
| +++ b/gcc/gcc/testsuite/gcc.dg/graphite/block-0.c
|
| @@ -1,13 +1,16 @@
|
| -/* { dg-options "-O -floop-block -fdump-tree-graphite-all" } */
|
| +#define DEBUG 0
|
| +#if DEBUG
|
| +#include <stdio.h>
|
| +#endif
|
|
|
| #define N 1000
|
| +int a[N];
|
|
|
| -int toto()
|
| +static int __attribute__((noinline))
|
| +foo (void)
|
| {
|
| int j;
|
| int i;
|
| - int a[N];
|
| - int b[N];
|
|
|
| for (i = 0; i < N; i++)
|
| for (j = 0; j < N; j++)
|
| @@ -16,10 +19,27 @@ int toto()
|
| return a[0];
|
| }
|
|
|
| -main()
|
| +extern void abort ();
|
| +
|
| +int
|
| +main (void)
|
| {
|
| - return toto();
|
| + int i, res;
|
| +
|
| + for (i = 0; i < N; i++)
|
| + a[i] = i;
|
| +
|
| + res = foo ();
|
| +
|
| +#if DEBUG
|
| + fprintf (stderr, "res = %d \n", res);
|
| +#endif
|
| +
|
| + if (res != 1999)
|
| + abort ();
|
| +
|
| + return 0;
|
| }
|
|
|
| -/* { dg-final { scan-tree-dump-times "will be loop blocked" 1 "graphite"} } */
|
| +/* { dg-final { scan-tree-dump-times "will be loop blocked" 1 "graphite" { xfail *-*-* } } } */
|
| /* { dg-final { cleanup-tree-dump "graphite" } } */
|
|
|