public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/110784] bpf: make use of the V4 sign-extended move instructions
Date: Thu, 27 Jul 2023 22:37:45 +0000	[thread overview]
Message-ID: <bug-110784-4-cimVdrjMMK@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-110784-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110784

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Faust <dfaust@gcc.gnu.org>:

https://gcc.gnu.org/g:14dab1a1bcc3f0315e33d166df06520fba409c9b

commit r14-2831-g14dab1a1bcc3f0315e33d166df06520fba409c9b
Author: David Faust <david.faust@oracle.com>
Date:   Thu Jul 27 13:55:44 2023 -0700

    bpf: ISA V4 sign-extending move and load insns [PR110782,PR110784]

    BPF ISA V4 introduces sign-extending move and load operations.  This
    patch makes the BPF backend generate those instructions, when enabled
    and useful.

    A new option, -m[no-]smov gates generation of these instructions, and is
    enabled by default for -mcpu=v4 and above.  Tests for the new
    instructions and documentation for the new options are included.

            PR target/110782
            PR target/110784

    gcc/

            * config/bpf/bpf.opt (msmov): New option.
            * config/bpf/bpf.cc (bpf_option_override): Handle it here.
            * config/bpf/bpf.md (*extendsidi2): New.
            (extendhidi2): New.
            (extendqidi2): New.
            (extendsisi2): New.
            (extendhisi2): New.
            (extendqisi2): New.
            * doc/invoke.texi (Option Summary): Add -msmov eBPF option.
            (eBPF Options): Add -m[no-]smov.  Document that -mcpu=v4
            also enables -msmov.

    gcc/testsuite/

            * gcc.target/bpf/sload-1.c: New test.
            * gcc.target/bpf/sload-pseudoc-1.c: New test.
            * gcc.target/bpf/smov-1.c: New test.
            * gcc.target/bpf/smov-pseudoc-1.c: New test.

  reply	other threads:[~2023-07-27 22:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-23 23:47 [Bug target/110784] New: " jemarch at gcc dot gnu.org
2023-07-27 22:37 ` cvs-commit at gcc dot gnu.org [this message]
2023-08-17 17:16 ` [Bug target/110784] " jemarch at gcc dot gnu.org

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=bug-110784-4-cimVdrjMMK@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).