target/i386: fix fscale handling of signaling NaN
commit0d48b436327955c69e2eb53f88aba9aa1e0dbaa0
authorJoseph Myers <joseph@codesourcery.com>
Thu, 7 May 2020 00:44:14 +0000 (7 00:44 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Jun 2020 16:10:17 +0000 (10 12:10 -0400)
tree213a5ebda7167b9e886062d49a02a7d593d72bb3
parentc415f2c58296d86e9abb7e4a133111acf7031da3
target/i386: fix fscale handling of signaling NaN

The implementation of the fscale instruction returns a NaN exponent
unchanged.  Fix it to return a quiet NaN when the provided exponent is
a signaling NaN.

Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Message-Id: <alpine.DEB.2.21.2005070043330.18350@digraph.polyomino.org.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/fpu_helper.c
tests/tcg/i386/test-i386-fscale.c [new file with mode: 0644]