1 /* { dg-require-effective-target vect_int } */
7 unsigned char udata_ch
[N
];
10 __attribute__ ((noinline
)) int
14 unsigned int intsum
= 0;
16 for (i
= 0; i
< N
; i
++)
19 asm volatile ("" ::: "memory");
22 /* widenning sum: sum chars into int. */
23 for (i
= 0; i
< N
; i
++)
25 intsum
+= udata_ch
[i
];
42 /* { dg-final { scan-tree-dump-times "vect_recog_widen_sum_pattern: detected" 1 "vect" } } */
43 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_widen_sum_qi_to_si || vect_unpack } } } } */
44 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { target { { ! vect_widen_sum_qi_to_si } && { ! vect_unpack } } } } } */