2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / msub-1.c
blob803ea77df742e14a951ad772996d879c6d2ab17c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=vr5400 -mgp32" } */
3 /* { dg-final { scan-assembler-times "\tmsac\t\\\$0," 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;