* gcc.dg/980816-1.c: New test.

From-SVN: r21757
This commit is contained in:
Jeffrey A Law 1998-08-16 00:30:06 +00:00 committed by Jeff Law
parent 373107aa5c
commit 1ed607b5e6
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Sun Aug 16 01:29:19 1998 Jeffrey A Law (law@cygnus.com)
* gcc.dg/980816-1.c: New test.
1998-08-01 Dave Love <d.love@dl.ac.uk>
* g77.f-torture/compile/980729-0.f: New test.

View File

@ -0,0 +1,20 @@
/* { dg-do compile } */
/* { dg-options -fno-force-mem } */
int
div_and_round_double (lden_orig, hden_orig)
int lden_orig, hden_orig;
{
int quo[4];
register int i;
unsigned int work;
register unsigned int carry = 0;
int lden = lden_orig;
int hden = hden_orig;
neg_double (&lden, &hden);
for (i = 4 - 1; i >= 0; i--)
{
quo[i] = work / (unsigned int ) lden;
carry = work % (unsigned int ) lden;
}
}