From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 84ACF385801E; Fri, 11 Feb 2022 13:50:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 84ACF385801E From: "christophe.leroy at csgroup dot eu" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94395] Powerpc suboptimal 64-bit constant generation near large values with few bits set Date: Fri, 11 Feb 2022 13:50:31 +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.2.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: christophe.leroy at csgroup dot eu 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: Fri, 11 Feb 2022 13:50:31 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94395 Christophe Leroy changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |christophe.leroy at csgrou= p dot eu --- Comment #2 from Christophe Leroy -= -- Problem still present with GCC 11.2 Linux kernel has a huge amount of sequences like: b4: 3d 20 fc ff lis r9,-769 b8: 61 29 ff ff ori r9,r9,65535 bc: 79 29 07 c6 rldicr r9,r9,32,31 c0: 65 29 ff ff oris r9,r9,65535 c4: 61 29 ff ff ori r9,r9,65535 c8: 7d 3d 03 a6 mtamr r9 Could instead be: li r9, -769 rotldi r9, r9, 48=