]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/s390x: Fix CONVERT TO LOGICAL/FIXED with out-of-range inputs
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 24 Jul 2023 08:15:56 +0000 (10:15 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 31 Jul 2023 06:10:51 +0000 (09:10 +0300)
commite5e8a8606425d58c67f2deddc0d78a530e713ce6
tree28c6cf4cb29b1b163de573d40313ef25636ebcc2
parent6bd56e0f82fbba142ec8572e44a4ea78a6c661c9
target/s390x: Fix CONVERT TO LOGICAL/FIXED with out-of-range inputs

CONVERT TO LOGICAL/FIXED deviate from IEEE 754 in that they raise an
inexact exception on out-of-range inputs. float_flag_invalid_cvti
aligns nicely with that behavior, so convert it to
S390_IEEE_MASK_INEXACT.

Cc: qemu-stable@nongnu.org
Fixes: defb0e3157af ("s390x: Implement opcode helpers")
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20230724082032.66864-4-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
(cherry picked from commit 53684e344a27da770acc9012740334154ddea24f)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/s390x/tcg/fpu_helper.c