* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / goacc / nvptx-merged-loop.c
blob3ff537c1d97b25d02ba63e1e14d30f4d3dc9c076
1 /* { dg-do link } */
2 /* { dg-require-effective-target offload_nvptx } */
3 /* { dg-options "-fopenacc -O2 -foffload=-fdump-rtl-mach\\ -dumpbase\\ nvptx-merged-loop.c\\ -Wa,--no-verify" } */
5 #define N (32*32*32+17)
6 void __attribute__ ((noinline)) Foo (int *ary)
8 int ix;
10 #pragma acc parallel num_workers(32) vector_length(32) copyout(ary[0:N])
12 /* Loop partitioning should be merged. */
13 #pragma acc loop worker vector
14 for (unsigned ix = 0; ix < N; ix++)
16 ary[ix] = ix;
21 int main ()
23 int ary[N];
25 Foo (ary);
27 return 0;
30 /* { dg-final { scan-rtl-dump "Merging loop .* into " "mach" } } */