1 /* Ensure that the default safelen is set correctly for the larger of the host
2 and offload device, to prevent defeating the vectorizer. */
4 /* { dg-require-effective-target offload_target_any } */
7 /* { dg-options "-fopenmp -O2 -fdump-tree-omplower" } */
9 int f(float *a
, float *b
, int n
)
12 #pragma omp target teams distribute parallel for simd map(tofrom: sum) reduction(+:sum)
13 for (int i
= 0; i
< n
; i
++)
18 /* Make sure that the max_vf used is suitable for the offload device.
19 { dg-final { scan-tree-dump-times {omp simd safelen\(64\)} 1 "omplower" { target offload_target_amdgcn } } } */