From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0A4833857820; Tue, 13 Apr 2021 00:09:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A4833857820 From: "luc.vanoostenryck at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100056] New: [9/10/11 Regression] Date: Tue, 13 Apr 2021 00:09:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: luc.vanoostenryck at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget attachments.created Message-ID: 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: Tue, 13 Apr 2021 00:09:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100056 Bug ID: 100056 Summary: [9/10/11 Regression] Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: luc.vanoostenryck at gmail dot com Target Milestone: --- Target: aarch64 Created attachment 50573 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D50573&action=3Dedit or-shift vs. [us]bfiz On arm64, the following code: unsigned or_shift(unsigned char i) { return i | (i << 11); } translate to the following assembly: or_shift: and w1, w0, 255 ubfiz w0, w0, 11, 8 orr w0, w0, w1 ret where the ubfiz instruction is a bit weird since the code matches directly what was generated in gcc 8.x and before: or_shift: and w0, w0, 255 orr w0, w0, w0, lsl 11 ret Same with a signed argument (see https://gcc.godbolt.org/z/af4zffMYa ).=