1 /* { dg-require-effective-target vect_int } */
11 unsigned short X
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
12 unsigned short Y
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
14 /* short->short->int dot product.
15 Not detected as a dot-product pattern.
16 Requires support for non-widneing multiplication and widening-summation. */
17 __attribute__ ((noinline
)) unsigned int
20 unsigned int result
= 0;
23 for (i
=0; i
<len
; i
++) {
49 /* The initialization loop in main also gets vectorized. */
50 /* { dg-final { scan-tree-dump-times "vect_recog_dot_prod_pattern: detected" 1 "vect" { xfail *-*-* } } } */
51 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { target { vect_short_mult && vect_widen_sum_hi_to_si } } } } */
52 /* { dg-final { cleanup-tree-dump "vect" } } */