unicorn/qemu/fpu
Alex Bennée af6a0b7c14
fpu/softfloat: check for Inf / x or 0 / x before /0
The re-factoring of div_floats changed the order of checking meaning
an operation like -inf/0 erroneously raises the divbyzero flag.
IEEE-754 (2008) specifies this should only occur for operations on
finite operands.

We fix this by moving the check on the dividend being Inf/0 to before
the divisor is zero check.

Backports commit 9cb4e398c2f95c1e837fe9c570e124a55259f725 from qemu
2018-04-18 09:19:28 -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 fpu/softfloat: check for Inf / x or 0 / x before /0 2018-04-18 09:19:28 -04:00