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

40 lines
913 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
/* Triangle loops. */
void abort (void);
#define N 500
void foo(void)
{
int i,j;
int A[3*N], B[3*N];
for (i = 0; i < 3*N; i++)
B[i] = A[i] = i;
for (i = 1; i < N; i++)
for (j = 1; j < i; j++)
/* This loop carried no dependency, it fails
at code generation part.*/
A[j+N] = A[j] + j;
for (i = 1; i < N; i++)
for (j = 1; j < i; j++)
if (A[j+N] != B[j] + j)
abort();
}
int main(void)
{
foo();
return 0;
}
/* Check that parallel code generation part make the right answer. */
cloog.m4: Set up to work against ISL only. 2012-07-02 Richard Guenther <rguenther@suse.de> Michael Matz <matz@suse.de> Tobias Grosser <tobias@grosser.es> Sebastian Pop <sebpop@gmail.com> config/ * cloog.m4: Set up to work against ISL only. * isl.m4: New file. * Makefile.def: Add ISL host module, remove PPL host module. Adjust ClooG host module to use the proper ISL. * Makefile.tpl: Pass ISL include flags instead of PPL ones. * configure.ac: Include config/isl.m4. Add ISL host library, remove PPL. Remove PPL configury, add ISL configury, adjust ClooG configury. * Makefile.in: Regenerated. * configure: Likewise. gcc/ * Makefile.in: Remove PPL flags in favor of ISL ones. (BACKENDLIBS): Remove PPL libs. (INCLUDES): Remove PPL includes in favor of ISL ones. (graphite-clast-to-gimple.o): Remove graphite-dependences.h and graphite-cloog-compat.h dependencies. (graphite-dependences.o): Likewise. (graphite-poly.o): Likewise. * configure.ac: Declare ISL vars instead of PPL ones. * configure: Regenerated. * doc/install.texi: Replace PPL requirement documentation with ISL one. * graphite-blocking.c: Remove PPL code, add ISL equivalent. * graphite-clast-to-gimple.c: Likewise. * graphite-dependences.c: Likewise. * graphite-interchange.c: Likewise. * graphite-poly.h: Likewise. * graphite-poly.c: Likewise. * graphite-sese-to-poly.c: Likewise. * graphite.c: Likewise. * graphite-scop-detection.c: Re-arrange includes. * graphite-cloog-util.c: Remove. * graphite-cloog-util.h: Likewise. * graphite-ppl.h: Likewise. * graphite-ppl.c: Likewise. * graphite-dependences.h: Likewise. libgomp/ * testsuite/libgomp.graphite/force-parallel-4.c: Adjust. * testsuite/libgomp.graphite/force-parallel-5.c: Likewise. * testsuite/libgomp.graphite/force-parallel-7.c: Likewise. * testsuite/libgomp.graphite/force-parallel-8.c: Likewise. Co-Authored-By: Michael Matz <matz@suse.de> Co-Authored-By: Sebastian Pop <sebpop@gmail.com> Co-Authored-By: Tobias Grosser <tobias@grosser.es> From-SVN: r189156
2012-07-02 13:43:46 +02:00
/* { dg-final { scan-tree-dump-times "1 loops carried no dependency" 1 "graphite" } } */
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
/* { dg-final { cleanup-tree-dump "graphite" } } */
/* { dg-final { scan-tree-dump-times "loopfn.0" 5 "optimized" } } */
/* { dg-final { scan-tree-dump-times "loopfn.1" 5 "optimized" } } */
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
/* { dg-final { cleanup-tree-dump "parloops" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */