]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target/s390x: fix NaN propagation rules
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 13 Jul 2022 18:26:11 +0000 (20:26 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 19 Jul 2022 10:49:56 +0000 (12:49 +0200)
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>
fpu/softfloat-specialize.c.inc

index 943e3301d2092066d43d310fb0e1605cd2bd49f9..a43ff5e02ef01acbe14a386bffafaaf0460e88c0 100644 (file)
@@ -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