All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Subject: Re: [PATCH 0/3] tcg/i386: Improve 8-bit shifts with VGF2P8AFFINEQB
Date: Wed, 27 Aug 2025 10:12:44 +0200	[thread overview]
Message-ID: <3d7f2ebe-111a-4858-a014-4e82872c0e88@redhat.com> (raw)
In-Reply-To: <31647a8c-60b7-4e27-b89f-6d1709331ec0@linaro.org>

On 8/27/25 09:26, Richard Henderson wrote:
> On 8/10/25 09:42, Richard Henderson wrote:
>> x86 doesn't directly support 8-bit vector shifts, so we have
>> some 2 to 5 insn expansions.  With VGF2P8AFFINEQB, we can do
>> it in 1 insn, plus a (possibly shared) constant load.
>>
>>
>> r~
>>
>>
>> Richard Henderson (3):
>>    cpuinfo/i386: Detect GFNI as an AVX extension
>>    tcg/i386: Add INDEX_op_x86_vgf2p8affineqb_vec
>>    tcg/i386: Use vgf2p8affineqb for MO_8 vector shifts
>>
>>   host/include/i386/host/cpuinfo.h |  1 +
>>   include/qemu/cpuid.h             |  3 ++
>>   util/cpuinfo-i386.c              |  1 +
>>   tcg/i386/tcg-target-opc.h.inc    |  1 +
>>   tcg/i386/tcg-target.c.inc        | 81 ++++++++++++++++++++++++++++++--
>>   5 files changed, 83 insertions(+), 4 deletions(-)
>>
> 
> Ping.

I don't know the target-independent part of TCG, but arithmetic right 
shift by 7 probably should keep using pcmpgtb?

There's also a typo in patch 1 (s/NF/FN/):

+#ifndef bit_GNFI
+#define bit_GNFI        (1 << 8)
+#endif

Paolo



  reply	other threads:[~2025-08-27  8:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-09 23:42 [PATCH 0/3] tcg/i386: Improve 8-bit shifts with VGF2P8AFFINEQB Richard Henderson
2025-08-09 23:42 ` [PATCH 1/3] cpuinfo/i386: Detect GFNI as an AVX extension Richard Henderson
2025-08-09 23:42 ` [PATCH 2/3] tcg/i386: Add INDEX_op_x86_vgf2p8affineqb_vec Richard Henderson
2025-08-09 23:42 ` [PATCH 3/3] tcg/i386: Use vgf2p8affineqb for MO_8 vector shifts Richard Henderson
2025-08-27  7:26 ` [PATCH 0/3] tcg/i386: Improve 8-bit shifts with VGF2P8AFFINEQB Richard Henderson
2025-08-27  8:12   ` Paolo Bonzini [this message]
2025-08-27  9:34     ` 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=3d7f2ebe-111a-4858-a014-4e82872c0e88@redhat.com \
    --to=pbonzini@redhat.com \
    --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.