1 /* { dg-do compile } */
2 /* This test requires widening_mul */
3 /* { dg-options "-march=vr5400 -mgp32 -fexpensive-optimizations" } */
4 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
5 /* { dg-final { scan-assembler-times "\tmsac\t\\\$0," 2 } } */
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 z - (long long) y * x;
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   long long t = (long long) x * y;
17   int temp = 5;
18   if (temp == 5)
19     z -= t;
20   return z;
21 }
22