1 /* Disabling epilogues until we find a better way to deal with scans. */
2 /* { dg-additional-options "--param vect-epilogues-nomask=0" } */
3 /* { dg-require-effective-target vect_int } */
12 /* Vectorization of reduction using loop-aware SLP. */
14 __attribute__ ((noinline
))
15 int main1 (int n
, int res0
, int res1
)
18 int max0
= -100, max1
= -313;
20 for (i
= 0; i
< n
; i
++) {
21 max1
= max1
< c
[2*i
+1] ? c
[2*i
+1] : max1
;
22 max0
= max0
< c
[2*i
] ? c
[2*i
] : max0
;
39 for (i
= 0; i
< N
; i
++)
47 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { xfail vect_no_int_min_max } } } */
48 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_min_max } } } */
49 /* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" } } */