1 /* { dg-require-effective-target vect_condition } */
2 /* { dg-additional-options "-fno-tree-vectorize -ftree-slp-vectorize -ftree-loop-if-convert" } */
8 __attribute__((noinline
, noclone
)) void
9 foo (short * __restrict__ a
, int * __restrict__ b
, int stride
)
13 for (i
= 0; i
< N
/stride
; i
++, a
+= stride
, b
+= stride
)
34 for (i
= 0; i
< N
; i
++)
42 for (i
= 1; i
< N
; i
++)
52 /* { dg-final { scan-tree-dump-times "basic block vectorized" 1 "slp1" { target { vect_element_align && vect_pack_trunc } } } } */