public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug target/110784] New: bpf: make use of the V4 sign-extended move instructions @ 2023-07-23 23:47 jemarch at gcc dot gnu.org 2023-07-27 22:37 ` [Bug target/110784] " cvs-commit at gcc dot gnu.org 2023-08-17 17:16 ` jemarch at gcc dot gnu.org 0 siblings, 2 replies; 3+ messages in thread From: jemarch at gcc dot gnu.org @ 2023-07-23 23:47 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110784 Bug ID: 110784 Summary: bpf: make use of the V4 sign-extended move instructions Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jemarch at gcc dot gnu.org Target Milestone: --- The BPF V4 ISA introduces three new instructions to move 16-, 32- and 64-bit signed values to 64-bit registers with sign extension. We shall make GCC to use these instructions whenever feasible/desirable, but only with -mcpu=v4 or later. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/110784] bpf: make use of the V4 sign-extended move instructions 2023-07-23 23:47 [Bug target/110784] New: bpf: make use of the V4 sign-extended move instructions jemarch at gcc dot gnu.org @ 2023-07-27 22:37 ` cvs-commit at gcc dot gnu.org 2023-08-17 17:16 ` jemarch at gcc dot gnu.org 1 sibling, 0 replies; 3+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2023-07-27 22:37 UTC (permalink / raw) To: gcc-bugs 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. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/110784] bpf: make use of the V4 sign-extended move instructions 2023-07-23 23:47 [Bug target/110784] New: bpf: make use of the V4 sign-extended move instructions jemarch at gcc dot gnu.org 2023-07-27 22:37 ` [Bug target/110784] " cvs-commit at gcc dot gnu.org @ 2023-08-17 17:16 ` jemarch at gcc dot gnu.org 1 sibling, 0 replies; 3+ messages in thread From: jemarch at gcc dot gnu.org @ 2023-08-17 17:16 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110784 Jose E. Marchesi <jemarch at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #2 from Jose E. Marchesi <jemarch at gcc dot gnu.org> --- Fixed by the commit above. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-17 17:16 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-07-23 23:47 [Bug target/110784] New: bpf: make use of the V4 sign-extended move instructions jemarch at gcc dot gnu.org 2023-07-27 22:37 ` [Bug target/110784] " cvs-commit at gcc dot gnu.org 2023-08-17 17:16 ` jemarch at gcc dot gnu.org
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).