qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 2/2] tests/tcg/x86_64/fma: Test some x86 fused-multiply-add c


From: Richard Henderson
Subject: Re: [PATCH 2/2] tests/tcg/x86_64/fma: Test some x86 fused-multiply-add cases
Date: Thu, 16 Jan 2025 07:13:48 -0800
User-agent: Mozilla Thunderbird

On 1/16/25 03:25, Peter Maydell wrote:
Add a test case which tests some corner case behaviour of
fused-multiply-add on x86:
  * 0 * Inf + SNaN should raise Invalid
  * 0 * Inf + QNaN shouldh not raise Invalid
  * tininess should be detected after rounding

There is also one currently-disabled test case:
  * flush-to-zero should be done after rounding

This is disabled because QEMU's emulation currently does this
incorrectly (and so would fail the test).  The test case is kept in
but disabled, as the justification for why the test running harness
has support for testing both with and without FTZ set.

Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
---
  tests/tcg/x86_64/fma.c           | 109 +++++++++++++++++++++++++++++++
  tests/tcg/x86_64/Makefile.target |   1 +
  2 files changed, 110 insertions(+)
  create mode 100644 tests/tcg/x86_64/fma.c

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

r~



reply via email to

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