1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
9 __attribute__ ((noinline
))
13 unsigned int intsum
= 0;
15 /* vectorization of reduction with induction, and widenning sum:
17 Need -fno-tree-scev-cprop or else the loop is eliminated. */
18 for (i
= 0; i
< N
; i
++)
26 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_widen_sum_hi_to_si } } } */
27 /* { dg-final { scan-tree-dump-times "vect_recog_widen_sum_pattern: detected" 1 "vect" { target vect_widen_sum_hi_to_si } } } */
28 /* { dg-final { cleanup-tree-dump "vect" } } */