1 /* { dg-require-effective-target vect_int } */
11 /* Vectorization of reduction using loop-aware SLP. */
13 __attribute__ ((noinline
))
14 int main1 (int n
, int res0
, int res1
)
17 int max0
= -100, max1
= -313;
19 for (i
= 0; i
< n
; i
++) {
20 max1
= max1
< c
[2*i
+1] ? c
[2*i
+1] : max1
;
21 max0
= max0
< c
[2*i
] ? c
[2*i
] : max0
;
38 for (i
= 0; i
< N
; i
++)
46 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { xfail vect_no_int_max } } } */
47 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_max } } } */
48 /* { dg-final { cleanup-tree-dump "vect" } } */