Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.target / mips / msub-3.c
blob97dccf2fd9724cb125d0292e69db54b0e3ea6fbf
1 /* { dg-do compile } */
2 /* { dg-mips-options "-O2 -mips32 -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;