Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / madd-3.c
blob29f4c9b3768c36def378ef7a16634fdfa578125c
1 /* { dg-do compile } */
2 /* { dg-options "isa_rev>=1 -mgp32" } */
3 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
4 /* { dg-final { scan-assembler-times "\tmadd\t" 3 } } */
6 NOMIPS16 long long
7 f1 (int x, int y, long long z)
9 return (long long) x * y + z;
12 NOMIPS16 long long
13 f2 (int x, int y, long long z)
15 return z + (long long) y * x;
18 NOMIPS16 long long
19 f3 (int x, int y, long long z)
21 long long t = (long long) x * y;
22 int temp = 5;
23 if (temp == 5)
24 z += t;
25 return z;