target/i386: reimplement fprem, fprem1 using floatx80 operations
commit5ef396e2ba865f34a4766dbd60c739fb4bcb4fcc
authorJoseph Myers <joseph@codesourcery.com>
Mon, 8 Jun 2020 16:58:23 +0000 (8 16:58 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Jun 2020 13:39:38 +0000 (26 09:39 -0400)
treeafe7ed8c0cec07c435d02ef26c0703507ff25368
parent445810ec915687d37b8ae0ef8d7340ab4a153efa
target/i386: reimplement fprem, fprem1 using floatx80 operations

The x87 fprem and fprem1 emulation is currently based around
conversion to double, which is inherently unsuitable for a good
emulation of any floatx80 operation.  Reimplement using the soft-float
floatx80 remainder operations.

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