1 /* { dg-require-effective-target vect_int } */
10 signed short X
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
11 signed short Y
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
13 /* short->short->int dot product. Should be vectorized on architectures
14 supporting vectorized multiplication of two short args with short result,
15 e.g "mulv4hi3" and widenning sum */
16 __attribute__ ((noinline
)) int
23 for (i
= 0; i
< len
; i
++)
38 for (i
= 0; i
< N
; i
++)
42 __asm__
volatile ("");
52 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_short_mult && { vect_widen_sum_hi_to_si || vect_unpack } } } } } */
53 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { target { ! vect_short_mult } } } } */
54 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { target { { ! vect_widen_sum_hi_to_si } && { ! vect_unpack } } } } } */