1 /* { dg-do run { target openacc_nvidia_accel_selected } } */
2 /* { dg-options "-foffload=-fdump-rtl-mach" } */
3 /* { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
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-offload-rtl-dump "Merging loop .* into " "mach" } } */