summaryrefslogtreecommitdiffstats
path: root/fpu
diff options
context:
space:
mode:
authorIlya Leoshkevich2022-07-13 20:26:11 +0200
committerThomas Huth2022-07-19 12:49:56 +0200
commit63dd7bcbea143814924e2c6f1c01a7d9ca8038f5 (patch)
tree24f219022f0e7b512fdd4d764fbc2d8e0b172d78 /fpu
parenttarget/s390x: fix handling of zeroes in vfmin/vfmax (diff)
downloadqemu-63dd7bcbea143814924e2c6f1c01a7d9ca8038f5.tar.gz
qemu-63dd7bcbea143814924e2c6f1c01a7d9ca8038f5.tar.xz
qemu-63dd7bcbea143814924e2c6f1c01a7d9ca8038f5.zip
target/s390x: fix NaN propagation rules
s390x has the same NaN propagation rules as ARM, and not as x86. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: David Hildenbrand <david@redhat.com> Message-Id: <20220713182612.3780050-3-iii@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'fpu')
-rw-r--r--fpu/softfloat-specialize.c.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/fpu/softfloat-specialize.c.inc b/fpu/softfloat-specialize.c.inc
index 943e3301d2..a43ff5e02e 100644
--- a/fpu/softfloat-specialize.c.inc
+++ b/fpu/softfloat-specialize.c.inc
@@ -390,7 +390,8 @@ bool float32_is_signaling_nan(float32 a_, float_status *status)
static int pickNaN(FloatClass a_cls, FloatClass b_cls,
bool aIsLargerSignificand, float_status *status)
{
-#if defined(TARGET_ARM) || defined(TARGET_MIPS) || defined(TARGET_HPPA)
+#if defined(TARGET_ARM) || defined(TARGET_MIPS) || defined(TARGET_HPPA) || \
+ defined(TARGET_S390X)
/* ARM mandated NaN propagation rules (see FPProcessNaNs()), take
* the first of:
* 1. A if it is signaling