1 /* { dg-require-effective-target vect_int } */
10 signed char X
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
11 signed char Y
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
13 /* char->short->int dot product.
14 The dot-product pattern should be detected.
15 Vectorizable on vect_sdot_qi targets (targets that support dot-product of
18 In the future could also be vectorized as widening-mult + widening-summation,
19 or with type-conversion support.
21 __attribute__ ((noinline
)) int
27 for (i
=0; i
<len
; i
++) {
43 __asm__
volatile ("");
53 /* { dg-final { scan-tree-dump-times "vect_recog_dot_prod_pattern: detected" 1 "vect" } } */
54 /* { dg-final { scan-tree-dump-times "vect_recog_widen_mult_pattern: detected" 1 "vect" } } */
55 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_sdot_qi } } } */
56 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_widen_mult_qi_to_hi && vect_widen_sum_hi_to_si } } } } */
58 /* { dg-final { cleanup-tree-dump "vect" } } */