1 /* { dg-require-effective-target vect_int } */
10 /* Vectorization of reduction using loop-aware SLP. */
12 __attribute__ ((noinline
))
13 int main1 (int n
, int res0
, int res1
)
16 int max0
= -100, max1
= -313;
18 for (i
= 0; i
< n
; i
++) {
19 max1
= max1
< c
[2*i
+1] ? c
[2*i
+1] : max1
;
20 max0
= max0
< c
[2*i
] ? c
[2*i
] : max0
;
37 for (i
= 0; i
< N
; i
++)
45 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { xfail vect_no_int_min_max } } } */
46 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_min_max } } } */