2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / madd-3.c
blob6b479f59c718391ad7dffc1a01706efcf33cc76d
1 /* { dg-do compile } */
2 /* { dg-options "-O2 isa_rev>=1 -mgp32" } */
3 /* { dg-final { scan-assembler-times "\tmadd\t" 3 } } */
5 NOMIPS16 long long
6 f1 (int x, int y, long long z)
8 return (long long) x * y + z;
11 NOMIPS16 long long
12 f2 (int x, int y, long long z)
14 return z + (long long) y * x;
17 NOMIPS16 long long
18 f3 (int x, int y, long long z)
20 long long t = (long long) x * y;
21 int temp = 5;
22 if (temp == 5)
23 z += t;
24 return z;