public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/110786] New: bpf: make use of the V4 byte swap instructions
@ 2023-07-24 0:59 jemarch at gcc dot gnu.org
2023-07-24 1:17 ` [Bug target/110786] " jemarch at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: jemarch at gcc dot gnu.org @ 2023-07-24 0:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110786
Bug ID: 110786
Summary: bpf: make use of the V4 byte swap 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 support for byte-swap instructions: bswap16, bswap32
and bswap64. GCC shall be adapted to use these instructions for the builtins:
__builtin_bswap{16,32,64}
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/110786] bpf: make use of the V4 byte swap instructions
2023-07-24 0:59 [Bug target/110786] New: bpf: make use of the V4 byte swap instructions jemarch at gcc dot gnu.org
@ 2023-07-24 1:17 ` jemarch at gcc dot gnu.org
2023-07-24 9:02 ` cvs-commit at gcc dot gnu.org
2023-07-24 9:04 ` jemarch at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: jemarch at gcc dot gnu.org @ 2023-07-24 1:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110786
Jose E. Marchesi <jemarch at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jemarch at gcc dot gnu.org
Ever confirmed|0 |1
Last reconfirmed| |2023-07-24
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/110786] bpf: make use of the V4 byte swap instructions
2023-07-24 0:59 [Bug target/110786] New: bpf: make use of the V4 byte swap instructions jemarch at gcc dot gnu.org
2023-07-24 1:17 ` [Bug target/110786] " jemarch at gcc dot gnu.org
@ 2023-07-24 9:02 ` cvs-commit at gcc dot gnu.org
2023-07-24 9:04 ` jemarch at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-07-24 9:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110786
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jose E. Marchesi <jemarch@gcc.gnu.org>:
https://gcc.gnu.org/g:f1e34551e4d6e259ab3bd0c9aba4fa1f0c448214
commit r14-2741-gf1e34551e4d6e259ab3bd0c9aba4fa1f0c448214
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Date: Mon Jul 24 10:56:27 2023 +0200
bpf: make use of the bswap{16,32,64} V4 BPF instruction
This patch makes the BPF backend to use the new V4 bswap{16,32,64}
instructions in order to implement the __builtin_bswap{16,32,64}
built-ins. It also adds support for -mcpu=v4 and -m[no]bswap
command-line options. Tests and doc updates are includes.
Tested in bpf-unknown-none.
gcc/ChangeLog
PR target/110786
* config/bpf/bpf.opt (mcpu): Add ISA_V4 and make it the default.
(mbswap): New option.
* config/bpf/bpf-opts.h (enum bpf_isa_version): New value ISA_V4.
* config/bpf/bpf.cc (bpf_option_override): Set bpf_has_bswap.
* config/bpf/bpf.md: Use bswap instructions if available for
bswap* insn, and fix constraint.
* doc/invoke.texi (eBPF Options): Document -mcpu=v4 and -mbswap.
gcc/testsuite/ChangeLog
PR target/110786
* gcc.target/bpf/bswap-1.c: Pass -mcpu=v3 to build test.
* gcc.target/bpf/bswap-2.c: New test.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/110786] bpf: make use of the V4 byte swap instructions
2023-07-24 0:59 [Bug target/110786] New: bpf: make use of the V4 byte swap instructions jemarch at gcc dot gnu.org
2023-07-24 1:17 ` [Bug target/110786] " jemarch at gcc dot gnu.org
2023-07-24 9:02 ` cvs-commit at gcc dot gnu.org
@ 2023-07-24 9:04 ` jemarch at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: jemarch at gcc dot gnu.org @ 2023-07-24 9:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110786
Jose E. Marchesi <jemarch at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #2 from Jose E. Marchesi <jemarch at gcc dot gnu.org> ---
GCC updated.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-07-24 9:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-24 0:59 [Bug target/110786] New: bpf: make use of the V4 byte swap instructions jemarch at gcc dot gnu.org
2023-07-24 1:17 ` [Bug target/110786] " jemarch at gcc dot gnu.org
2023-07-24 9:02 ` cvs-commit at gcc dot gnu.org
2023-07-24 9:04 ` 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).