]> Git Repo - qemu.git/commit
softfloat: fix {min, max}nummag for same-abs-value inputs
authorEmilio G. Cota <[email protected]>
Fri, 13 Apr 2018 14:03:33 +0000 (15:03 +0100)
committerPeter Maydell <[email protected]>
Fri, 13 Apr 2018 14:47:53 +0000 (15:47 +0100)
commit6245327a367292b354489c54e965646823023919
treea163341ba60caee440428d8f7abda08eb8137bea
parent38e83a71d02e026d4a6d0ab1ef9855c4924c2c68
softfloat: fix {min, max}nummag for same-abs-value inputs

Before 8936006 ("fpu/softfloat: re-factor minmax", 2018-02-21),
we used to return +Zero for maxnummag(-Zero,+Zero); after that
commit, we return -Zero.

Fix it by making {min,max}nummag consistent with {min,max}num,
deferring to the latter when the absolute value of the operands
is the same.

With this fix we now pass fp-test.

Reviewed-by: Alex Bennée <[email protected]>
Signed-off-by: Emilio G. Cota <[email protected]>
Signed-off-by: Alex Bennée <[email protected]>
Message-id: 20180413140334[email protected]
Signed-off-by: Peter Maydell <[email protected]>
fpu/softfloat.c
This page took 0.024805 seconds and 4 git commands to generate.