From: Richard Henderson <richard.henderson@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>,
qemu-arm@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH for-10.1 4/6] target/arm: LD1Q, ST1Q are vector + scalar, not scalar + vector
Date: Wed, 23 Jul 2025 10:14:18 -0700 [thread overview]
Message-ID: <4a887ef2-6ecb-4311-9aa7-45002dfe2fe8@linaro.org> (raw)
In-Reply-To: <20250723165458.3509150-5-peter.maydell@linaro.org>
On 7/23/25 09:54, Peter Maydell wrote:
> Unlike the "LD1D (scalar + vector)" etc instructions, LD1Q is
> vector + scalar. This means that:
> * the vector and the scalar register are in opposite fields
> in the encoding
> * 31 in the scalar register field is XZR, not XSP
>
> The same applies for ST1Q.
>
> This means we can't reuse the trans_LD1_zprz() and trans_ST1_zprz()
> functions for LD1Q and ST1Q. Split them out to use their own
> trans functions.
>
> Note that the change made here to sve.decode requires the decodetree
> bugfix "decodetree: Infer argument set before inferring format" to
> avoid a spurious compile-time error about "dtype".
>
> Fixes: d2aa9a804ee678f ("target/arm: Implement LD1Q, ST1Q for SVE2p1")
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> target/arm/tcg/sve.decode | 12 +++----
> target/arm/tcg/translate-sve.c | 65 ++++++++++++++++++++++++++--------
> 2 files changed, 57 insertions(+), 20 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
next prev parent reply other threads:[~2025-07-23 17:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-23 16:54 [PATCH for-10.1 0/6] target/arm: Fix various SVE2p1 load/store bugs Peter Maydell
2025-07-23 16:54 ` [PATCH for-10.1 1/6] target/arm: Expand the descriptor for SME/SVE memory ops to i64 Peter Maydell
2025-07-23 16:54 ` [PATCH for-10.1 2/6] target/arm: Pack mtedesc into upper 32 bits of descriptor Peter Maydell
2025-07-23 16:54 ` [PATCH for-10.1 3/6] decodetree: Infer argument set before inferring format Peter Maydell
2025-07-23 16:54 ` [PATCH for-10.1 4/6] target/arm: LD1Q, ST1Q are vector + scalar, not scalar + vector Peter Maydell
2025-07-23 17:14 ` Richard Henderson [this message]
2025-07-23 16:54 ` [PATCH for-10.1 5/6] target/arm: Pass correct esize to sve_st1_z() for LD1Q, ST1Q Peter Maydell
2025-07-23 17:14 ` Richard Henderson
2025-07-23 16:54 ` [PATCH for-10.1 6/6] target/arm: Fix LD1W, LD1D to 128-bit elements Peter Maydell
2025-07-23 17:14 ` 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=4a887ef2-6ecb-4311-9aa7-45002dfe2fe8@linaro.org \
--to=richard.henderson@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--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).