1 /* { dg-additional-options "-fwrapv" } */
2 /* { dg-require-effective-target vect_int } */
8 signed char data_ch
[N
] =
9 { 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28 };
12 __attribute__ ((noinline
)) int
16 signed short shortsum
= 0;
18 /* widenning sum: sum chars into short. */
20 for (i
= 0; i
< N
; i
++)
22 shortsum
+= data_ch
[i
];
39 /* { dg-final { scan-tree-dump "vect_recog_widen_sum_pattern: detected" "vect" } } */
40 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_widen_sum_qi_to_hi } } } */
41 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { target { ! vect_widen_sum_qi_to_hi } } } } */