1 /* { dg-do compile } */
2 /* This test requires widening_mul */
3 /* { dg-options "-march=vr5500 -mgp32 -fexpensive-optimizations" } */
4 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
5 /* { dg-final { scan-assembler-times "\tmadd\t" 3 } } */
6
7 NOMIPS16 long long
f1(int x,int y,long long z)8 f1 (int x, int y, long long z)
9 {
10 return (long long) x * y + z;
11 }
12
13 NOMIPS16 long long
f2(int x,int y,long long z)14 f2 (int x, int y, long long z)
15 {
16 return z + (long long) y * x;
17 }
18
19 NOMIPS16 long long
f3(int x,int y,long long z)20 f3 (int x, int y, long long z)
21 {
22 long long t = (long long) x * y;
23 int temp = 5;
24 if (temp == 5)
25 z += t;
26 return z;
27 }
28