]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/tcg/x86_64/fma: Test some x86 fused-multiply-add cases
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 16 Jan 2025 11:25:36 +0000 (11:25 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Feb 2025 14:51:01 +0000 (15:51 +0100)
commit059fad25fda352e3b8d79d0c7ad681d08516d8d5
tree6e33958784542734f9328180e0613e2e86e975d8
parent2b3bfbb21b08bfd9aa49b665b66851e9ebf62802
tests/tcg/x86_64/fma: Test some x86 fused-multiply-add cases

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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Link: https://lore.kernel.org/r/20250116112536.4117889-3-peter.maydell@linaro.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/tcg/x86_64/Makefile.target
tests/tcg/x86_64/fma.c [new file with mode: 0644]