Add testcase for PR46970.
2011-01-18 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/46970 * gcc.dg/graphite/pr46970.c: New. From-SVN: r169257
This commit is contained in:
parent
4a20f4fc02
commit
b28641995c
@ -1,3 +1,8 @@
|
||||
2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
PR tree-optimization/46970
|
||||
* gcc.dg/graphite/pr46970.c: New.
|
||||
|
||||
2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
PR tree-optimization/46215
|
||||
|
28
gcc/testsuite/gcc.dg/graphite/pr46970.c
Normal file
28
gcc/testsuite/gcc.dg/graphite/pr46970.c
Normal file
@ -0,0 +1,28 @@
|
||||
/* { dg-do run } */
|
||||
/* { dg-options "-Os -ftree-loop-linear" } */
|
||||
|
||||
#define N 16
|
||||
|
||||
int
|
||||
main1 (int n, int *a)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
for (i = 0; i < n; i++)
|
||||
for (j = 0; j < n; j++)
|
||||
a[j] = i + n;
|
||||
|
||||
for (j = 0; j < n; j++)
|
||||
if (a[j] != i + n - 1)
|
||||
__builtin_abort ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
int a[N];
|
||||
main1 (N, a);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user