1 /* PR tree-optimization/50717 */
2 /* Ensure that widening multiply-and-accumulate is not used where integer
3 type promotion or users' casts should prevent it. */
5 /* { dg-options "-O2 -fdump-tree-widening_mul" } */
8 f (unsigned int a
, char b
, long long c
)
14 g (short a
, short b
, int c
)
16 return (short)(a
* b
) + c
;
20 h (char a
, char b
, int c
)
22 return (char)(a
* b
) + c
;
25 /* { dg-final { scan-tree-dump-times "WIDEN_MULT_PLUS_EXPR" 0 "widening_mul" } } */