qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] target/i386: reimplement fp2fp conversion instructions
@ 2023-08-29 16:53 Paolo Bonzini
  2023-08-29 16:53 ` [PATCH 1/2] target/i386: generalize operand size "ph" for use in CVTPS2PD Paolo Bonzini
  2023-08-29 16:53 ` [PATCH 2/2] target/i386: fix memory operand size for CVTPS2PD Paolo Bonzini
  0 siblings, 2 replies; 5+ messages in thread
From: Paolo Bonzini @ 2023-08-29 16:53 UTC (permalink / raw)
  To: qemu-devel

CVTPS2PD only loads a half-register for memory, unlike the other
operations under 0x0F 0x5A.  Therefore, it is unlike other
"unary" floating point operations, that load a full register
from memory in their packed incarnation.

To fix it, reimplement the four operations under 0x0F 0x5A
(CVTSS2SD, CVTSD2SS, CVTPS2PD, CVTPD2PS) individually.

Paolo

Paolo Bonzini (2):
  target/i386: generalize operand size "ph" for use in CVTPS2PD
  target/i386: fix memory operand size for CVTPS2PD

 target/i386/tcg/decode-new.c.inc | 20 +++++++++++++++-----
 target/i386/tcg/decode-new.h     |  2 +-
 target/i386/tcg/emit.c.inc       | 30 +++++++++++++++++++++++++-----
 3 files changed, 41 insertions(+), 11 deletions(-)

-- 
2.41.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-29 17:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-29 16:53 [PATCH 0/2] target/i386: reimplement fp2fp conversion instructions Paolo Bonzini
2023-08-29 16:53 ` [PATCH 1/2] target/i386: generalize operand size "ph" for use in CVTPS2PD Paolo Bonzini
2023-08-29 17:32   ` Richard Henderson
2023-08-29 16:53 ` [PATCH 2/2] target/i386: fix memory operand size for CVTPS2PD Paolo Bonzini
2023-08-29 17:36   ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).