When a denormal underflows to zero, raise an underflow exception.
Thanks to marcel for helping me test this.
This commit is contained in:
parent
c73ba67e32
commit
3edaa65c3a
@ -312,6 +312,9 @@ makefloat(int sign, int exp, u_int64_t frac,
|
||||
break;
|
||||
}
|
||||
|
||||
if (frac == 0)
|
||||
*status |= FPCR_UNF;
|
||||
|
||||
/*
|
||||
* Rounding up may take us to TWO if
|
||||
* fraclo == (TWO - epsilon). Also If fraclo has been
|
||||
|
Loading…
Reference in New Issue
Block a user