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