]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/c-c++-common/goacc/kernels-loop-g.c
1 /* { dg-additional-options "-O2" } */
2 /* { dg-additional-options "-g" } */
3 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
4 /* { dg-additional-options "-fdump-tree-optimized" } */
6 #include "kernels-loop.c"
8 /* Check that only one loop is analyzed, and that it can be parallelized. */
9 /* { dg-final { scan-tree-dump-times "SUCCESS: may be parallelized" 1 "parloops1" } } */
10 /* { dg-final { scan-tree-dump-times "(?n)__attribute__\\(\\(oacc kernels parallelized, oacc function \\(, , \\), oacc kernels, omp target entrypoint\\)\\)" 1 "parloops1" } } */
11 /* { dg-final { scan-tree-dump-not "FAILED:" "parloops1" } } */
13 /* Check that the loop has been split off into a function. */
14 /* { dg-final { scan-tree-dump-times "(?n);; Function .*main._omp_fn.0" 1 "optimized" } } */