OSDN Git Service

target/i386: reimplement fpatan using floatx80 operations
authorJoseph Myers <joseph@codesourcery.com>
Tue, 23 Jun 2020 00:01:38 +0000 (00:01 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Jun 2020 13:39:39 +0000 (09:39 -0400)
commitff57bb7b63267dabd60f88354c8c29ea5e1eb3ec
tree5198464485b39858e35b8bbf45c0091ec332db1b
parent1f18a1e6ab8368a4eab2d22894d3b2ae75250cd3
target/i386: reimplement fpatan using floatx80 operations

The x87 fpatan emulation is currently based around conversion to
double.  This is inherently unsuitable for a good emulation of any
floatx80 operation.  Reimplement using the soft-float operations, as
for other such instructions.

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