1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int_mult } */
5 bar (int *x
, int a
, int b
, int n
)
7 x
= __builtin_assume_aligned (x
, __BIGGEST_ALIGNMENT__
);
10 for (int i
= 0; i
< n
; ++i
)
12 /* Reduction chain vectorization fails here because of the
13 different operations but we can still vectorize both
14 reductions as SLP reductions, saving IVs. */
23 /* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" } } */
24 /* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */
25 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */