1 /* { dg-require-effective-target vect_simd_clones } */
2 /* { dg-additional-options "-fopenmp-simd" } */
3 /* { dg-additional-options "-mavx" { target avx_runtime } } */
4 /* { dg-additional-sources vect-simd-clone-10a.c } */
16 #include "vect-simd-clone-10.h"
18 __attribute__((noinline
)) void
23 for (i
= 0; i
< N
; i
++)
24 a
[i
] = foo (c
[i
], a
[i
], b
[i
]) + 6;
26 for (i
= 0; i
< N
; i
++)
27 c
[i
] = bar (a
[i
], b
[i
], c
[i
]) * 2;
30 __attribute__((noinline
)) void
35 for (i
= 0; i
< N
; i
++)
37 a
[i
] = foo (c
[i
], a
[i
], b
[i
]) + 6;
41 for (i
= 0; i
< N
; i
++)
43 c
[i
] = bar (a
[i
], b
[i
], c
[i
]) * 2;
48 __attribute__((noinline
)) void
52 for (i
= 0; i
< N
; i
++)
68 for (i
= 0; i
< N
; i
++)
69 if (a
[i
] != i
* 2 + 23 + (i
% 37) + (i
& 63)
70 || b
[i
] != 17 + (i
% 37)
71 || c
[i
] != i
* 4 + 80 + 4 * (i
% 37) + 4 * (i
& 63))
75 for (i
= 0; i
< N
; i
++)
76 if (a
[i
] != i
* 2 + 23 + (i
% 37) + (i
& 63)
77 || b
[i
] != 17 + (i
% 37)
78 || c
[i
] != i
* 4 + 80 + 4 * (i
% 37) + 4 * (i
& 63)
79 || d
[i
] != ((unsigned char) (17 + i
)) / 2)