aboutsummaryrefslogtreecommitdiff
path: root/fpu
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-10-22 10:48:48 -0700
committerRichard Henderson <richard.henderson@linaro.org>2021-05-16 07:13:51 -0500
commit0d40cd939ac852270da545de235744abe34b61e5 (patch)
tree3042469b35d3788fd315d0ec922767e978395054 /fpu
parent134eda00e9ec4f4a2798d64b3105331f8281aba6 (diff)
downloadqemu-0d40cd939ac852270da545de235744abe34b61e5.zip
qemu-0d40cd939ac852270da545de235744abe34b61e5.tar.gz
qemu-0d40cd939ac852270da545de235744abe34b61e5.tar.bz2
softfloat: Use return_nan in float_to_float
Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'fpu')
-rw-r--r--fpu/softfloat.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/fpu/softfloat.c b/fpu/softfloat.c
index 64edb23..b694e38 100644
--- a/fpu/softfloat.c
+++ b/fpu/softfloat.c
@@ -1931,13 +1931,7 @@ static FloatParts float_to_float(FloatParts a, const FloatFmt *dstf,
break;
}
} else if (is_nan(a.cls)) {
- if (is_snan(a.cls)) {
- float_raise(float_flag_invalid, s);
- a = parts_silence_nan(a, s);
- }
- if (s->default_nan_mode) {
- return parts_default_nan(s);
- }
+ return return_nan(a, s);
}
return a;
}