gcc/libgomp/testsuite/libgomp.graphite/force-parallel-2.c

28 lines
533 B
C
Raw Normal View History

Add new testcases. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New. * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New. * gcc.dg/graphite/id-1.c: New. * gcc.dg/graphite/id-10.c: New. * gcc.dg/graphite/id-11.c: New. * gcc.dg/graphite/id-12.c: New. * gcc.dg/graphite/id-13.c: New. * gcc.dg/graphite/id-14.c: New. * gcc.dg/graphite/id-15.c: New. * gcc.dg/graphite/id-2.c: New. * gcc.dg/graphite/id-3.c: New. * gcc.dg/graphite/id-4.c: New. * gcc.dg/graphite/id-5.c: New. * gcc.dg/graphite/id-6.c: New. * gcc.dg/graphite/id-7.c: New. * gcc.dg/graphite/id-8.c: New. * gcc.dg/graphite/id-9.c: New. * gcc.dg/graphite/interchange-0.c: New. * gcc.dg/graphite/interchange-1.c: New. * gcc.dg/graphite/interchange-2.c: New. * gcc.dg/graphite/interchange-3.c: New. * gcc.dg/graphite/interchange-4.c: New. * gcc.dg/graphite/interchange-5.c: New. * gcc.dg/graphite/interchange-6.c: New. * gcc.dg/graphite/interchange-7.c: New. * gcc.dg/graphite/interchange-8.c: New. * gcc.dg/graphite/pr35356-1.c: New. * gcc.dg/graphite/pr35356-2.c: New. * gcc.dg/graphite/pr35356-3.c: New. * gcc.dg/graphite/pr40157.c: New. * gcc.dg/graphite/run-id-1.c: New. * gcc.dg/graphite/scop-20.c: New. * gcc.dg/graphite/scop-21.c: New. * gfortran.dg/graphite/id-1.f90: New. * gfortran.dg/graphite/id-10.f90: New. * gfortran.dg/graphite/id-11.f: New. * gfortran.dg/graphite/id-12.f: New. * gfortran.dg/graphite/id-13.f: New. * gfortran.dg/graphite/id-14.f: New. * gfortran.dg/graphite/id-15.f: New. * gfortran.dg/graphite/id-16.f: New. * gfortran.dg/graphite/id-5.f: New. * gfortran.dg/graphite/id-6.f: New. * gfortran.dg/graphite/id-7.f: New. * gfortran.dg/graphite/id-8.f: New. * gfortran.dg/graphite/id-9.f: New. * gfortran.dg/graphite/interchange-1.f: New. * gfortran.dg/graphite/interchange-2.f: New. From-SVN: r150303
2009-07-31 04:49:01 +02:00
void abort (void);
void parloop (int N)
{
int i, j;
int x[500][500];
Add new testcases. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New. * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New. * gcc.dg/graphite/id-1.c: New. * gcc.dg/graphite/id-10.c: New. * gcc.dg/graphite/id-11.c: New. * gcc.dg/graphite/id-12.c: New. * gcc.dg/graphite/id-13.c: New. * gcc.dg/graphite/id-14.c: New. * gcc.dg/graphite/id-15.c: New. * gcc.dg/graphite/id-2.c: New. * gcc.dg/graphite/id-3.c: New. * gcc.dg/graphite/id-4.c: New. * gcc.dg/graphite/id-5.c: New. * gcc.dg/graphite/id-6.c: New. * gcc.dg/graphite/id-7.c: New. * gcc.dg/graphite/id-8.c: New. * gcc.dg/graphite/id-9.c: New. * gcc.dg/graphite/interchange-0.c: New. * gcc.dg/graphite/interchange-1.c: New. * gcc.dg/graphite/interchange-2.c: New. * gcc.dg/graphite/interchange-3.c: New. * gcc.dg/graphite/interchange-4.c: New. * gcc.dg/graphite/interchange-5.c: New. * gcc.dg/graphite/interchange-6.c: New. * gcc.dg/graphite/interchange-7.c: New. * gcc.dg/graphite/interchange-8.c: New. * gcc.dg/graphite/pr35356-1.c: New. * gcc.dg/graphite/pr35356-2.c: New. * gcc.dg/graphite/pr35356-3.c: New. * gcc.dg/graphite/pr40157.c: New. * gcc.dg/graphite/run-id-1.c: New. * gcc.dg/graphite/scop-20.c: New. * gcc.dg/graphite/scop-21.c: New. * gfortran.dg/graphite/id-1.f90: New. * gfortran.dg/graphite/id-10.f90: New. * gfortran.dg/graphite/id-11.f: New. * gfortran.dg/graphite/id-12.f: New. * gfortran.dg/graphite/id-13.f: New. * gfortran.dg/graphite/id-14.f: New. * gfortran.dg/graphite/id-15.f: New. * gfortran.dg/graphite/id-16.f: New. * gfortran.dg/graphite/id-5.f: New. * gfortran.dg/graphite/id-6.f: New. * gfortran.dg/graphite/id-7.f: New. * gfortran.dg/graphite/id-8.f: New. * gfortran.dg/graphite/id-9.f: New. * gfortran.dg/graphite/interchange-1.f: New. * gfortran.dg/graphite/interchange-2.f: New. From-SVN: r150303
2009-07-31 04:49:01 +02:00
for (i = 0; i < N; i++)
for (j = 0; j < N; j++)
x[i][j] = i + j + 3;
for (i = 0; i < N; i++)
for (j = 0; j < N; j++)
if (x[i][j] != i + j + 3)
abort ();
}
int main(void)
{
parloop(500);
Add new testcases. 2009-07-30 Sebastian Pop <sebastian.pop@amd.com> * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New. * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New. * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New. * gcc.dg/graphite/id-1.c: New. * gcc.dg/graphite/id-10.c: New. * gcc.dg/graphite/id-11.c: New. * gcc.dg/graphite/id-12.c: New. * gcc.dg/graphite/id-13.c: New. * gcc.dg/graphite/id-14.c: New. * gcc.dg/graphite/id-15.c: New. * gcc.dg/graphite/id-2.c: New. * gcc.dg/graphite/id-3.c: New. * gcc.dg/graphite/id-4.c: New. * gcc.dg/graphite/id-5.c: New. * gcc.dg/graphite/id-6.c: New. * gcc.dg/graphite/id-7.c: New. * gcc.dg/graphite/id-8.c: New. * gcc.dg/graphite/id-9.c: New. * gcc.dg/graphite/interchange-0.c: New. * gcc.dg/graphite/interchange-1.c: New. * gcc.dg/graphite/interchange-2.c: New. * gcc.dg/graphite/interchange-3.c: New. * gcc.dg/graphite/interchange-4.c: New. * gcc.dg/graphite/interchange-5.c: New. * gcc.dg/graphite/interchange-6.c: New. * gcc.dg/graphite/interchange-7.c: New. * gcc.dg/graphite/interchange-8.c: New. * gcc.dg/graphite/pr35356-1.c: New. * gcc.dg/graphite/pr35356-2.c: New. * gcc.dg/graphite/pr35356-3.c: New. * gcc.dg/graphite/pr40157.c: New. * gcc.dg/graphite/run-id-1.c: New. * gcc.dg/graphite/scop-20.c: New. * gcc.dg/graphite/scop-21.c: New. * gfortran.dg/graphite/id-1.f90: New. * gfortran.dg/graphite/id-10.f90: New. * gfortran.dg/graphite/id-11.f: New. * gfortran.dg/graphite/id-12.f: New. * gfortran.dg/graphite/id-13.f: New. * gfortran.dg/graphite/id-14.f: New. * gfortran.dg/graphite/id-15.f: New. * gfortran.dg/graphite/id-16.f: New. * gfortran.dg/graphite/id-5.f: New. * gfortran.dg/graphite/id-6.f: New. * gfortran.dg/graphite/id-7.f: New. * gfortran.dg/graphite/id-8.f: New. * gfortran.dg/graphite/id-9.f: New. * gfortran.dg/graphite/interchange-1.f: New. * gfortran.dg/graphite/interchange-2.f: New. From-SVN: r150303
2009-07-31 04:49:01 +02:00
return 0;
}
/* Check that parallel code generation part make the right answer. */
/* { dg-final { scan-tree-dump-times "2 loops carried no dependency" 1 "graphite" } } */
/* { dg-final { scan-tree-dump-times "loopfn" 4 "optimized" } } */