mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-09 00:35:40 +00:00
softfloat: Fix missing inexact for floating-point add
For 0x1.0000000000003p+0 + 0x1.ffffffep+14 = 0x1.0001fffp+15 we dropped the sticky bit and so failed to raise inexact. Backports commit 64d450a0eaad5f02f9d6bba1dd451446297bb4dc from qemu
This commit is contained in:
parent
0136ca773f
commit
a456920fd7
|
@ -702,7 +702,7 @@ static FloatParts addsub_floats(FloatParts a, FloatParts b, bool subtract,
|
|||
}
|
||||
a.frac += b.frac;
|
||||
if (a.frac & DECOMPOSED_OVERFLOW_BIT) {
|
||||
a.frac >>= 1;
|
||||
shift64RightJamming(a.frac, 1, &a.frac);
|
||||
a.exp += 1;
|
||||
}
|
||||
return a;
|
||||
|
|
Loading…
Reference in a new issue