]> git.ipfire.org Git - thirdparty/qemu.git/commit
fpu/softfloat: Replace float_class_dnan with parts_default_nan
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 10 May 2018 20:09:49 +0000 (13:09 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 17 May 2018 22:24:19 +0000 (15:24 -0700)
commitf7e598e264b94d0982e647ac303108781d5eb4fa
tree3e28550cfd497bfaf6a6cf0de5f51fbc152a9671
parent298b468e4389587ab2e8599dd33eff3fbc698011
fpu/softfloat: Replace float_class_dnan with parts_default_nan

With a canonical representation of NaNs, we can return the
default nan directly rather than delay the expansion until
the final format is known.

Note one case where we uselessly assigned to a.sign, which was
overwritten/ignored later when expanding float_class_dnan.

Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
fpu/softfloat-specialize.h
fpu/softfloat.c