2 /* { dg-additional-options "-O2 -fvect-cost-model=cheap -fdump-tree-vect-details" } */
3 /* { dg-additional-options "-mavx" { target avx_runtime } } */
4 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 3 "vect" { target avx_runtime } } } */
8 __attribute__((noipa
)) int
11 #pragma omp parallel for simd lastprivate (conditional: x) schedule(simd: static)
12 for (int i
= 0; i
< 128; i
++)
18 __attribute__((noipa
)) int
22 #pragma omp for simd lastprivate (conditional: x, v) schedule(static, 16)
23 for (int i
= 16; i
< 128; ++i
)
33 __attribute__((noipa
)) int
36 #pragma omp parallel for simd lastprivate (conditional: x) schedule(simd: dynamic, 16)
37 for (int i
= 0; i
< 128; i
++)
46 int a
[128], b
[128], i
;
47 for (i
= 0; i
< 128; i
++)
49 a
[i
] = ((i
% 11) == 2) ? i
+ 10 : 0;
50 asm volatile ("" : "+g" (i
));
51 b
[i
] = ((i
% 13) == 5) ? i
* 2 : 0;
55 if (bar (b
, a
) != 244 || v
!= 143)