]> git.ipfire.org Git - thirdparty/qemu.git/commit
fpu/softfloat: Define floatN_default_nan in terms of parts_default_nan
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 14 May 2018 20:56:44 +0000 (13:56 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 17 May 2018 22:27:15 +0000 (15:27 -0700)
commit0218a16e540ad416683e19dfbd52f75092507b27
tree709a16801b296fa5a508c2ce923ab44f0ffe7e74
parent3bd2dec1a1e8fadb49e3ff2e2633f79e01a25c41
fpu/softfloat: Define floatN_default_nan in terms of parts_default_nan

Isolate the target-specific choice to 2 functions instead of 6.

The code in float16_default_nan was only correct for ARM, MIPS, and X86.
Though float16 support is rare among our targets.

The code in float128_default_nan was arguably wrong for Sparc.  While
QEMU supports the Sparc 128-bit insns, no real cpu enables it.

The code in floatx80_default_nan tried to be over-general.  There are
only two targets that support this format: x86 and m68k.  Thus there
is no point in inventing a value for snan_bit_is_one.

Move routines that no longer have ifdefs out of softfloat-specialize.h.

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