qemu-s390x
[Top][All Lists]
Advanced

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

Re: [PATCH 15/21] target/i386: Set 2-NaN propagation rule explicitly


From: Richard Henderson
Subject: Re: [PATCH 15/21] target/i386: Set 2-NaN propagation rule explicitly
Date: Mon, 28 Oct 2024 12:24:12 +0000
User-agent: Mozilla Thunderbird

On 10/25/24 15:12, Peter Maydell wrote:
Set the NaN propagation rule explicitly for the float_status words
used in the x86 target.

This is a no-behaviour-change commit, so we retain the existing
behaviour of using the x87-style "prefer QNaN over SNaN, then prefer
the NaN with the larger significand" for MMX and SSE.  This is
however not the documented hardware behaviour, so we leave a TODO
note about what we should be doing instead.

Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
---
  target/i386/cpu.h              |  3 +++
  target/i386/cpu.c              |  4 ++++
  target/i386/tcg/fpu_helper.c   | 40 ++++++++++++++++++++++++++++++++++
  fpu/softfloat-specialize.c.inc |  3 ++-
  4 files changed, 49 insertions(+), 1 deletion(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

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