aboutsummaryrefslogtreecommitdiff
path: root/fpu
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2024-11-05 10:09:55 +0000
committerPeter Maydell <peter.maydell@linaro.org>2024-11-05 10:09:55 +0000
commit4482f32dcd1faa035e03ded557fa980e8b528c31 (patch)
treea3660570100f2da713a8c7a0ed453b4b22db2844 /fpu
parent65c1c039cdbcf66e9bc5b0366c8f7cc22284359a (diff)
target/sparc: Explicitly set 2-NaN propagation rule
Set the NaN propagation rule explicitly in the float_status words we use. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20241025141254.2141506-13-peter.maydell@linaro.org
Diffstat (limited to 'fpu')
-rw-r--r--fpu/softfloat-specialize.c.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/fpu/softfloat-specialize.c.inc b/fpu/softfloat-specialize.c.inc
index 226632a4d1..8bc9518717 100644
--- a/fpu/softfloat-specialize.c.inc
+++ b/fpu/softfloat-specialize.c.inc
@@ -404,11 +404,9 @@ static int pickNaN(FloatClass a_cls, FloatClass b_cls,
|| defined(TARGET_RISCV) || defined(TARGET_SH4) \
|| defined(TARGET_TRICORE) || defined(TARGET_ARM) || defined(TARGET_MIPS) \
|| defined(TARGET_LOONGARCH64) || defined(TARGET_HPPA) \
- || defined(TARGET_S390X) || defined(TARGET_PPC) || defined(TARGET_M68K)
+ || defined(TARGET_S390X) || defined(TARGET_PPC) || defined(TARGET_M68K) \
+ || defined(TARGET_SPARC)
g_assert_not_reached();
-#elif defined(TARGET_SPARC)
- /* Prefer SNaN over QNaN, order B then A. */
- rule = float_2nan_prop_s_ba;
#elif defined(TARGET_XTENSA)
/*
* Xtensa has two NaN propagation modes.