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:
Sebastian Pop 2011-01-25 21:25:24 +00:00 committed by Sebastian Pop
parent 4a20f4fc02
commit b28641995c
2 changed files with 33 additions and 0 deletions

View File

@ -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

View 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;
}