unicorn/qemu/fpu
Peter Maydell 150125de3f
softfloat: Handle default NaN mode after pickNaNMulAdd, not before
It is implementation defined whether a multiply-add of
(0,inf,qnan) or (inf,0,qnan) raises InvalidaOperation or
not, so we let the target-specific pickNaNMulAdd function
handle this. This means that we must do the "return the
default NaN in default NaN mode" check after the call,
not before. Correct the ordering, and restore the comment
from the old propagateFloat64MulAddNaN() that warned about
this corner case.

This fixes a regression from 2.11 for Arm guests where we would
incorrectly fail to set the Invalid flag for these cases.

Backports commit 1839189bbf89889076aadf0c793c1b57977b28d7 from qemu
2018-05-14 07:24:40 -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: Handle default NaN mode after pickNaNMulAdd, not before 2018-05-14 07:24:40 -04:00