* gcc.dg/980816-1.c: New test.
From-SVN: r21757
This commit is contained in:
parent
373107aa5c
commit
1ed607b5e6
@ -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.
|
||||
|
20
gcc/testsuite/gcc.dg/980816-1.c
Normal file
20
gcc/testsuite/gcc.dg/980816-1.c
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user