public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: David Faust <dfaust@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r14-9014] bpf: fix zero_extendqidi2 ldx template
Date: Thu, 15 Feb 2024 16:57:55 +0000 (GMT)	[thread overview]
Message-ID: <20240215165755.9DFB7384DED1@sourceware.org> (raw)

https://gcc.gnu.org/g:f995f5677305b3ae782d41750e29175cb77e0147

commit r14-9014-gf995f5677305b3ae782d41750e29175cb77e0147
Author: David Faust <david.faust@oracle.com>
Date:   Wed Feb 14 14:29:43 2024 -0800

    bpf: fix zero_extendqidi2 ldx template
    
    Commit 77d0f9ec3809b4d2e32c36069b6b9239d301c030 inadvertently changed
    the normal asm dialect instruction template for zero_extendqidi2 from
    ldxb to ldxh. Fix that.
    
    gcc/
    
            * config/bpf/bpf.md (zero_extendqidi2): Correct asm template to
            use ldxb instead of ldxh.

Diff:
---
 gcc/config/bpf/bpf.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/bpf/bpf.md b/gcc/config/bpf/bpf.md
index 080a63cd970b..50df1aaa3e21 100644
--- a/gcc/config/bpf/bpf.md
+++ b/gcc/config/bpf/bpf.md
@@ -292,7 +292,7 @@
   "@
    {and\t%0,0xff|%0 &= 0xff}
    {mov\t%0,%1\;and\t%0,0xff|%0 = %1;%0 &= 0xff}
-   {ldxh\t%0,%1|%0 = *(u8 *) (%1)}"
+   {ldxb\t%0,%1|%0 = *(u8 *) (%1)}"
   [(set_attr "type" "alu,alu,ldx")])
 
 (define_insn "zero_extendsidi2"

                 reply	other threads:[~2024-02-15 16:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20240215165755.9DFB7384DED1@sourceware.org \
    --to=dfaust@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.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 read-only IMAP folder(s) and NNTP newsgroup(s).