From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AAD783858D37; Thu, 27 Jul 2023 22:37:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AAD783858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690497479; bh=8iPqJXM+KxvA8stNl8PcKamzzPwYC0DhqJvXRS+Mw0E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SeZXSFME9xMftEETih+Tm8d+00Uc5BQ2Tm8t1/aOXcdUsr3si90MBSVAcjn4A0U+m yhmgJxSTKJ/ptd50RgH1IoYOMwmDuwXnRDdlfewLpCgMHzM1UiV/ana5fjC9PBSTdU YJ75E85vG4MM8E8y8f3mfybTRU0nFt1MtkB2HzDM= From: "cvs-commit at gcc dot 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110784 --- Comment #1 from CVS Commits --- The master branch has been updated by David Faust : https://gcc.gnu.org/g:14dab1a1bcc3f0315e33d166df06520fba409c9b commit r14-2831-g14dab1a1bcc3f0315e33d166df06520fba409c9b Author: David Faust 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=3Dv4 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=3Dv4 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.=