1 /* { dg-do compile } */
2 /* This test requires widening_mul */
3 /* { dg-options "-mdspr2 -mgp32 -fexpensive-optimizations" } */
4 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
5 /* { dg-final { scan-assembler-times "\tmadd\t\\\$ac" 3 } } */
8 f1 (int x
, int y
, long long z
)
10 return (long long) x
* y
+ z
;
14 f2 (int x
, int y
, long long z
)
16 return z
+ (long long) y
* x
;
20 f3 (int x
, int y
, long long z
)
22 long long t
= (long long) x
* y
;