Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.target / mips / msub-2.c
blob09c22e76632b410ca6b65d3aeb2c885b224ff06e
1 /* { dg-do compile } */
2 /* { dg-mips-options "-O2 -march=vr5500 -mgp32" } */
3 /* { dg-final { scan-assembler-times "\tmsub\t" 2 } } */
5 NOMIPS16 long long
6 f1 (int x, int y, long long z)
8 return z - (long long) y * x;
11 NOMIPS16 long long
12 f2 (int x, int y, long long z)
14 long long t = (long long) x * y;
15 int temp = 5;
16 if (temp == 5)
17 z -= t;
18 return z;