From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Subject: [PATCH 0/2] target/i386: reimplement fp2fp conversion instructions
Date: Tue, 29 Aug 2023 18:53:02 +0200 [thread overview]
Message-ID: <20230829165304.114948-1-pbonzini@redhat.com> (raw)
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
next reply other threads:[~2023-08-29 16:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-29 16:53 Paolo Bonzini [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230829165304.114948-1-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).