unicorn/qemu/fpu
Emilio G. Cota 74b7fe484c
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.

Backports commit 6245327a367292b354489c54e965646823023919 from qemu
2018-04-16 13:46:29 -04:00
..
softfloat-macros.h softfloat: export some functions 2018-03-09 01:22:00 -05:00
softfloat-specialize.h softfloat-specialize: Perform comparison pass with qemu 2018-03-21 13:27:59 -04:00
softfloat.c softfloat: fix {min, max}nummag for same-abs-value inputs 2018-04-16 13:46:29 -04:00