diff options
| author | Joseph Myers | 2020-05-07 02:44:57 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2020-06-10 18:10:17 +0200 |
| commit | b40eec96b26028b68c3594fbf34b6d6f029df26a (patch) | |
| tree | 9d102ee76ffb044cc3fe3612d37e634c85cc3c05 /include | |
| parent | target/i386: fix fscale handling of signaling NaN (diff) | |
| download | qemu-b40eec96b26028b68c3594fbf34b6d6f029df26a.tar.gz qemu-b40eec96b26028b68c3594fbf34b6d6f029df26a.tar.xz qemu-b40eec96b26028b68c3594fbf34b6d6f029df26a.zip | |
target/i386: fix fscale handling of invalid exponent encodings
The fscale implementation does not check for invalid encodings in the
exponent operand, thus treating them like INT_MIN (the value returned
for invalid encodings by floatx80_to_int32_round_to_zero). Fix it to
treat them similarly to signaling NaN exponents, thus generating a
quiet NaN result.
Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Message-Id: <alpine.DEB.2.21.2005070044190.18350@digraph.polyomino.org.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
