From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9C3ED3858410; Mon, 4 Oct 2021 09:54:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9C3ED3858410 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/85730] complex code for modifying lowest byte in a 4-byte vector Date: Mon, 04 Oct 2021 09:54:37 +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: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2021 09:54:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85730 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |segher at gcc dot gnu.org --- Comment #5 from Richard Biener --- The GIMPLE IL is now using BIT_INSERT_EXPRs consistently for all cases and combine does Trying 8 -> 11: 8: {r90:SI=3Dr89:SI<<0x1;clobber flags:CC;} REG_DEAD r89:SI REG_UNUSED flags:CC 11: strict_low_part(r92:V4QI#0)=3Dr90:SI#0 REG_DEAD r90:SI Failed to match this instruction: (set (strict_low_part (subreg:QI (reg:V4QI 92 [ v ]) 0)) (ashift:QI (subreg:QI (reg:SI 89 [ v ]) 0) (const_int 1 [0x1]))) where it fails to try (add:QI (subreg...) (subreg...)) instead of the shift= by 1. Not sure whether targets should have a special-case pattern here or whether that's for combine to un-canonicalize it?=