softfloat: do not return pseudo-denormal from floatx80 remainder
commitb662495dca0a2a36008cf8def91e2566519ed3f2
authorJoseph Myers <joseph@codesourcery.com>
Mon, 8 Jun 2020 16:56:20 +0000 (8 16:56 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Jun 2020 13:39:38 +0000 (26 09:39 -0400)
treecba436afcb5cf0ec3e121301f3ba59297f008acd
parent499a2f7b554a295cfc10f8cd026d9b20a38fe664
softfloat: do not return pseudo-denormal from floatx80 remainder

The floatx80 remainder implementation sometimes returns the numerator
unchanged when the denominator is sufficiently larger than the
numerator.  But if the value to be returned unchanged is a
pseudo-denormal, that is incorrect.  Fix it to normalize the numerator
in that case.

Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <alpine.DEB.2.21.2006081655520.23637@digraph.polyomino.org.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
fpu/softfloat.c