From: Jim MacArthur <jim.macarthur@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH v2 1/6] target/arm/tcg: Implement new instructions for FPRCVT
Date: Fri, 26 Jun 2026 16:27:41 +0100 [thread overview]
Message-ID: <aj6abXmFzY3McY5g@linaro.org> (raw)
In-Reply-To: <4c5c2c64-34a5-4d60-a199-c31a837e38d1@linaro.org>
On Wed, Jun 24, 2026 at 08:34:23AM -0700, Richard Henderson wrote:
> > +/*
> > + * Floating point to int conversion, but puts the result
> > + * in a SIMD register.
> > + */
> > +static bool do_fcvt_simd(DisasContext *s, arg_fcvt *a,
> > + ARMFPRounding rmode, bool is_signed)
> > +{
> > + TCGv_i64 tcg_int;
> > + int check = fp_access_check_scalar_hsd(s, a->esz);
> > +
> > + if (check <= 0) {
> > + return check == 0;
> > + }
> > + /*
> > + * a->sf should specify destination size (64 bit or 32 bit)
> > + * a->esz specifies source size
> > + */
> > + tcg_int = tcg_temp_new_i64();
> > + do_fcvt_scalar(s, (a->sf ? MO_64 : MO_32) | (is_signed ? MO_SIGN : 0),
> > + a->esz, tcg_int, a->shift, a->rn, rmode);
> > +
> > + if (!s->fpcr_nep) {
> > + clear_vec(s, a->rd);
> > + }
> > + write_vec_element(s, tcg_int, a->rd, 0, (a->sf ? MO_64 : MO_32));
> > + return true;
> > +}
>
> I had suggested that the same MemOp change be done to do_fcvt_f, for the destination.
Yes you did, apologies. It'll be in the next version.
(Resent due to missing mailing list CC)
Jim
next prev parent reply other threads:[~2026-06-26 15:28 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-24 13:37 [PATCH v2 0/6] Implement FEAT_FPRCVT in cpu_max Jim MacArthur
2026-06-24 13:37 ` [PATCH v2 1/6] target/arm/tcg: Implement new instructions for FPRCVT Jim MacArthur
2026-06-24 15:34 ` Richard Henderson
2026-06-26 15:27 ` Jim MacArthur [this message]
2026-06-25 16:19 ` Alex Bennée
2026-06-25 17:30 ` Richard Henderson
2026-06-24 13:37 ` [PATCH v2 2/6] target/arm/tcg: Allow vector FP conversions with FPRCVT Jim MacArthur
2026-06-24 15:35 ` Richard Henderson
2026-06-24 17:09 ` Alex Bennée
2026-06-24 13:37 ` [PATCH v2 3/6] target/arm/tcg/cpu64.c: Add FEAT_FPRCVT to cpu_max Jim MacArthur
2026-06-24 15:35 ` Richard Henderson
2026-06-24 13:37 ` [PATCH v2 4/6] linux-user/aarch64/elfload.c: Add FPRCVT Jim MacArthur
2026-06-24 15:35 ` Richard Henderson
2026-06-24 13:37 ` [PATCH v2 5/6] docs/system/arm: Add FEAT_FPRCVT to A-profile support Jim MacArthur
2026-06-24 15:37 ` Richard Henderson
2026-06-24 13:37 ` [PATCH v2 6/6] tests/tcg/arm: Tests for new FPRCVT instructions Jim MacArthur
2026-06-24 15:38 ` Richard Henderson
2026-06-25 8:54 ` Alex Bennée
2026-06-25 14:53 ` Richard Henderson
2026-06-25 15:07 ` Alex Bennée
2026-06-25 15:14 ` Alex Bennée
2026-06-26 8:47 ` [PATCH v2 0/6] Implement FEAT_FPRCVT in cpu_max Peter Maydell
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=aj6abXmFzY3McY5g@linaro.org \
--to=jim.macarthur@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.