1 /* { dg-require-effective-target vect_int } */
14 __attribute__ ((noinline
)) void
19 for (i
= 0; i
< N
; i
++)
21 out
[i
] = in
[i
] * COEF
;
30 for (i
= 0; i
< N
; i
++)
33 __asm__
volatile ("");
38 for (i
= 0; i
< N
; i
++)
39 if (out
[i
] != in
[i
] * COEF
|| out2
[i
] != in
[i
] + COEF2
)
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" { target vect_widen_mult_hi_to_si_pattern } } } */
47 /* { dg-final { scan-tree-dump-times "pattern recognized" 1 "vect" { target vect_widen_mult_hi_to_si_pattern } } } */
48 /* { dg-final { cleanup-tree-dump "vect" } } */