1 /* { dg-require-effective-target vect_int } */
9 /* Require widening-mult or data-unpacking (for the type promotion). */
10 __attribute__ ((noinline
)) int
11 main1 (short *in
, int off
, short scale
, int n
)
16 for (i
= 0; i
< n
; i
++) {
17 sum
+= ((int) in
[i
] * (int) in
[i
+off
]) >> scale
;
33 __asm__
volatile ("");
36 sum
= main1 (X
, 1, 16, N
-1);
45 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_widen_mult_hi_to_si } } } */
46 /* { dg-final { scan-tree-dump-times "vect_recog_widen_mult_pattern: detected" 1 "vect" } } */
47 /* { dg-final { cleanup-tree-dump "vect" } } */