2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / maddu-3.c
blobb0b4817a47f4b638555c3499cec7a6409bf89a7f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 isa_rev>=1 -mgp32" } */
3 /* { dg-final { scan-assembler-times "\tmaddu\t" 3 } } */
5 typedef unsigned int ui;
6 typedef unsigned long long ull;
8 NOMIPS16 ull
9 f1 (ui x, ui y, ull z)
11 return (ull) x * y + z;
14 NOMIPS16 ull
15 f2 (ui x, ui y, ull z)
17 return z + (ull) y * x;
20 NOMIPS16 ull
21 f3 (ui x, ui y, ull z)
23 ull t = (ull) x * y;
24 int temp = 5;
25 if (temp == 5)
26 z += t;
27 return z;