1 /* { dg-require-effective-target vect_simd_clones } */
2 /* { dg-additional-options "-fopenmp-simd" } */
3 /* { dg-additional-options "-mavx" { target avx_runtime } } */
14 #pragma omp declare simd simdlen(2) notinbranch uniform(b) linear(c:3)
16 #pragma omp declare simd simdlen(4) notinbranch uniform(b) linear(c:3)
18 __attribute__((noinline
)) long long int
19 foo (int a
, int b
, int c
)
20 /* { dg-warning {unsupported simdlen 4 \(amdgcn\)} "" { target amdgcn*-*-* } .-1 } */
25 __attribute__((noinline
, noclone
)) void
30 for (i
= 0; i
< N
; ++i
)
32 d
[i
] = foo (i
, 123, i
* 3);
44 for (i
= 0; i
< N
; i
++)
45 if (d
[i
] != i
* 4 + 123 || e
[i
] != i
)