1 /* { dg-require-effective-target divmod_simode } */
2 /* { dg-options "-O2 -fdump-tree-widening_mul-details" } */
4 typedef int SImode
__attribute__((mode(SI
)));
5 typedef unsigned USImode
__attribute__((mode(SI
)));
10 #define FOO(smalltype, bigtype, no) \
11 bigtype f_##no(smalltype x, bigtype y) \
14 bigtype r1 = 0, r2 = 0; \
22 FOO(SImode
, SImode
, 1)
23 FOO(SImode
, USImode
, 2)
24 FOO(USImode
, USImode
, 3)
26 /* { dg-final { scan-tree-dump-times "DIVMOD" 3 "widening_mul" } } */