* gcc.dg/const-elim-1.c: xfail for xtensa.
[official-gcc.git] / gcc / testsuite / gcc.dg / 980816-1.c
blob8581d999dbd64a74631a8bbbc23e939155742c8e
1 /* { dg-do compile } */
2 /* { dg-options -fno-force-mem } */
4 int
5 div_and_round_double (lden_orig, hden_orig)
6 int lden_orig, hden_orig;
8 int quo[4];
9 register int i;
10 unsigned int work;
11 register unsigned int carry = 0;
12 int lden = lden_orig;
13 int hden = hden_orig;
14 neg_double (&lden, &hden);
15 for (i = 4 - 1; i >= 0; i--)
17 quo[i] = work / (unsigned int ) lden;
18 carry = work % (unsigned int ) lden;
20 return 0;