summary refs log tree commit diff stats
path: root/tcg/optimize.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2025-01-16 11:25:36 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2025-02-07 15:51:01 +0100
commit059fad25fda352e3b8d79d0c7ad681d08516d8d5 (patch)
tree6e33958784542734f9328180e0613e2e86e975d8 /tcg/optimize.c
parent2b3bfbb21b08bfd9aa49b665b66851e9ebf62802 (diff)
downloadfocaccia-qemu-059fad25fda352e3b8d79d0c7ad681d08516d8d5.tar.gz
focaccia-qemu-059fad25fda352e3b8d79d0c7ad681d08516d8d5.zip
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>
Diffstat (limited to 'tcg/optimize.c')
0 files changed, 0 insertions, 0 deletions