fixed denormal arg handling in VGENTMANT*
This commit is contained in:
parent
c064a09348
commit
7e1a31af5e
@ -688,6 +688,8 @@ float32 float32_getmant(float32 a, float_status_t &status, int sign_ctrl, int in
|
||||
if (aExp == 0) {
|
||||
float_raise(status, float_flag_denormal);
|
||||
normalizeFloat32Subnormal(aSig, &aExp, &aSig);
|
||||
// aExp += 0x7E;
|
||||
aSig &= 0x7FFFFF;
|
||||
}
|
||||
|
||||
switch(interv) {
|
||||
@ -1912,6 +1914,8 @@ float64 float64_getmant(float64 a, float_status_t &status, int sign_ctrl, int in
|
||||
if (aExp == 0) {
|
||||
float_raise(status, float_flag_denormal);
|
||||
normalizeFloat64Subnormal(aSig, &aExp, &aSig);
|
||||
// aExp += 0x3FE;
|
||||
aSig &= BX_CONST64(0xFFFFFFFFFFFFFFFF);
|
||||
}
|
||||
|
||||
switch(interv) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user