2 /* { dg-require-effective-target vect_simd_clones } */
3 /* { dg-additional-options "-fopenmp-simd" } */
11 #pragma omp declare simd
12 __attribute__((noinline
)) void
13 foo (int in
, int *out1
, int *out2
)
19 #pragma omp declare simd linear (out1, out2)
20 __attribute__((noinline
)) void
21 bar (int in
, int *out1
, int *out2
)
27 __attribute__((noinline
)) void
31 for (i
= 0; i
< N
; i
++)
34 for (i
= 0; i
< N
; i
++)
40 for (i
= 0; i
< N
; i
++)
41 if (a
[i
] != i
* i
* i
* i
- 1)
43 for (i
= 0; i
< N
; i
++)
46 for (i
= 0; i
< N
; i
++)
52 for (i
= 0; i
< N
; i
++)
53 if (a
[i
] != i
* i
* i
* i
- 1)
65 /* { dg-final { cleanup-tree-dump "vect" } } */