summaryrefslogtreecommitdiffstats
path: root/fpu
diff options
context:
space:
mode:
authorRichard Henderson2021-12-17 17:57:14 +0100
committerCédric Le Goater2021-12-17 17:57:14 +0100
commitba11446c40903b9d97fb75a078d43fee6444d3b6 (patch)
tree68165c226f71f5cee32555fa6057c1dcb4de8ea1 /fpu
parentsoftfloat: Extend float_exception_flags to 16 bits (diff)
downloadqemu-ba11446c40903b9d97fb75a078d43fee6444d3b6.tar.gz
qemu-ba11446c40903b9d97fb75a078d43fee6444d3b6.tar.xz
qemu-ba11446c40903b9d97fb75a078d43fee6444d3b6.zip
softfloat: Add flag specific to Inf - Inf
PowerPC has this flag, and it's easier to compute it here than after the fact. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20211119160502.17432-3-richard.henderson@linaro.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'fpu')
-rw-r--r--fpu/softfloat-parts.c.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/fpu/softfloat-parts.c.inc b/fpu/softfloat-parts.c.inc
index 41d4b17e41..eb2b475ca4 100644
--- a/fpu/softfloat-parts.c.inc
+++ b/fpu/softfloat-parts.c.inc
@@ -354,7 +354,7 @@ static FloatPartsN *partsN(addsub)(FloatPartsN *a, FloatPartsN *b,
return a;
}
/* Inf - Inf */
- float_raise(float_flag_invalid, s);
+ float_raise(float_flag_invalid | float_flag_invalid_isi, s);
parts_default_nan(a, s);
return a;
}
@@ -494,6 +494,7 @@ static FloatPartsN *partsN(muladd)(FloatPartsN *a, FloatPartsN *b,
if (ab_mask & float_cmask_inf) {
if (c->cls == float_class_inf && a->sign != c->sign) {
+ float_raise(float_flag_invalid | float_flag_invalid_isi, s);
goto d_nan;
}
goto return_inf;