On Thu, Feb 13, 2025 at 02:26:10PM +0000, Peter Maydell wrote:
> Date: Thu, 13 Feb 2025 14:26:10 +0000
> From: Peter Maydell <peter.mayd...@linaro.org>
> Subject: [PATCH 1/4] target/i386: Detect flush-to-zero after rounding
> X-Mailer: git-send-email 2.43.0
> 
> The Intel SDM section 10.2.3.3 on the MXCSR.FTZ bit says that we
> flush outputs to zero when we detect underflow, which is after
> rounding.  Set the detect_ftz flag accordingly.
> 
> This allows us to enable the test in fma.c which checks this
> behaviour.
> 
> Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>
> Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
> ---
>  target/i386/tcg/fpu_helper.c | 8 ++++----
>  tests/tcg/x86_64/fma.c       | 5 -----
>  2 files changed, 4 insertions(+), 9 deletions(-)

Reviewed-by: Zhao Liu <zhao1....@intel.com>


Reply via email to