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
)
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
++)
30 /* { dg-final { scan-rtl-dump "Merging loop .* into " "mach" } } */