mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-10 09:20:31 +08:00
Add testcase for PR43567.
2011-01-25 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/43567 * gcc.dg/graphite/pr43567.c: New. From-SVN: r169252
This commit is contained in:
parent
b305e3dab4
commit
eaf52b4125
@ -69,6 +69,11 @@
|
||||
PR tree-optimization/43567
|
||||
* gcc.dg/graphite/pr43567.c: New.
|
||||
|
||||
2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
PR tree-optimization/43567
|
||||
* gcc.dg/graphite/pr43567.c: New.
|
||||
|
||||
2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
* Makefile.in (LAMBDA_H): Removed.
|
||||
|
@ -1,3 +1,8 @@
|
||||
2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
PR tree-optimization/43567
|
||||
* gcc.dg/graphite/pr43567.c: New.
|
||||
|
||||
2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
* gfortran.dg/graphite/interchange-4.f: New.
|
||||
|
26
gcc/testsuite/gcc.dg/graphite/pr43567.c
Normal file
26
gcc/testsuite/gcc.dg/graphite/pr43567.c
Normal file
@ -0,0 +1,26 @@
|
||||
/* { dg-do run } */
|
||||
/* { dg-options "-O2 -fno-inline -fno-tree-ch -ftree-loop-linear" } */
|
||||
|
||||
extern void abort ();
|
||||
|
||||
int
|
||||
test (int n, int *a)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
for (i = 0; i < n; i++)
|
||||
for (j = 0; j < n; j++)
|
||||
a[j] = i + n;
|
||||
|
||||
if (a[0] != 31 || i + n - 1 != 31)
|
||||
abort ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main (void)
|
||||
{
|
||||
int a[16];
|
||||
test (16, a);
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user