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
++) {
40 __asm__
volatile ("");
50 /* The initialization loop in main also gets vectorized. */
51 /* { dg-final { scan-tree-dump-times "vect_recog_dot_prod_pattern: detected(?:(?!Analysis failed).)*Analysis succeeded" 1 "vect" { xfail *-*-* } } } */
52 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_short_mult && vect_widen_sum_hi_to_si } } } } */