1 /* { dg-require-effective-target vect_simd_clones } */
2 /* { dg-additional-options "-fopenmp-simd" } */
3 /* { dg-additional-options "-mavx" { target avx_runtime } } */
16 #pragma omp declare simd simdlen(4) notinbranch uniform(b)
18 #pragma omp declare simd simdlen(8) notinbranch uniform(b)
20 __attribute__((noinline
)) float
21 foo (float a
, float b
, float c
)
22 /* { dg-warning {unsupported simdlen 8 \(amdgcn\)} "" { target amdgcn*-*-* } .-1 } */
29 __attribute__((noinline
, noclone
)) void
34 for (i
= 0; i
< N
; ++i
)
36 d
[i
] = foo (i
, 123, i
* 3);
49 for (i
= 0; i
< N
; i
++)
50 if (d
[i
] != (i
< 30 ? 5.0f
: i
* 4 + 123.0f
) || e
[i
] || f
[i
] != 1)