1 /* { dg-require-effective-target vect_int } */
7 #define N (VECTOR_BITS * 2 / 16)
12 unsigned short udata_sh
[N
] =
13 { 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28 };
16 __attribute__ ((noinline
)) int
20 unsigned int intsum
= 0;
22 /* widenning sum: sum shorts into int. */
23 for (i
= 0; i
< N
; i
++)
25 intsum
+= udata_sh
[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_hi_to_si } } } */
44 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { target { ! vect_widen_sum_hi_to_si } } } } */