qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v5 26/28] fpu/softfloat: Define floatN_default_n


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v5 26/28] fpu/softfloat: Define floatN_default_nan in terms of parts_default_nan
Date: Tue, 15 May 2018 11:38:45 +0100

On 14 May 2018 at 23:12, Richard Henderson <address@hidden> wrote:
> 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.
>
> Signed-off-by: Richard Henderson <address@hidden>
> ---

This patch results in float32_default_nan() for Arm returning 0x7f800000,
which is not a NaN...

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]