1 /* { dg-require-effective-target vect_int } */
10 signed short X
[N
] __attribute__ ((__aligned__(16)));
11 signed short Y
[N
] __attribute__ ((__aligned__(16)));
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 */
23 for (i
= 0; i
< len
; i
++)
38 for (i
= 0; i
< N
; i
++)
51 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_short_mult && vect_widen_sum_hi_to_si } } } } */
52 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { target { ! vect_short_mult } } } } */
53 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { target { ! vect_widen_sum_hi_to_si } } } } */
55 /* { dg-final { cleanup-tree-dump "vect" } } */