1 /* { dg-require-effective-target vect_int } */
2 /* { dg-additional-options "-fno-ipa-icf" } */
12 __attribute__ ((noinline
)) void
17 for (i
= 0; i
< N
; i
++)
18 out
[i
] = in
[i
] * COEF
;
21 __attribute__ ((noinline
)) void
26 for (i
= 0; i
< N
; i
++)
27 out
[i
] = COEF
* in
[i
];
36 for (i
= 0; i
< N
; i
++)
39 __asm__
volatile ("");
44 for (i
= 0; i
< N
; i
++)
45 if (out
[i
] != in
[i
] * COEF
)
50 for (i
= 0; i
< N
; i
++)
51 if (out
[i
] != in
[i
] * COEF
)
57 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { target vect_widen_mult_hi_to_si } } } */
58 /* { dg-final { scan-tree-dump-times "vect_recog_widen_mult_pattern: detected" 2 "vect" { target vect_widen_mult_hi_to_si_pattern } } } */
59 /* { dg-final { scan-tree-dump-times "pattern recognized" 2 "vect" { target vect_widen_mult_hi_to_si_pattern } } } */