]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/sparc: don't set FSR_NVA when comparing unordered floats
authorClément Chigot <chigot@adacore.com>
Fri, 25 Apr 2025 09:35:13 +0000 (11:35 +0200)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 27 May 2025 19:09:13 +0000 (20:09 +0100)
commit4ec799dd17dcbb0fa4e90e685d5d6fcf8f72338a
tree49599d78cd9399f02c5e03ef579c51877752cc90
parent80db93b2b88f9b3ed8927ae7ac74ca30e643a83e
target/sparc: don't set FSR_NVA when comparing unordered floats

FSR_NVA should be set when one of the operands is a signaling NaN or
when using FCMPEx instructions. But those cases are already handled
within check_ieee_exception or floatxx_compare functions.
Otherwise, it should be left untouched.

FTR, this was detected by inf-compare-[5678] tests within gcc
testsuites.

Signed-off-by: Clément Chigot <chigot@adacore.com>
Message-Id: <20250425093513.863289-1-chigot@adacore.com>
Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
target/sparc/fop_helper.c