From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 196C6385AE43; Wed, 2 Nov 2022 17:16:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 196C6385AE43 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667409408; bh=WjqbCGNdY3he4mMNWMvvbdBKvYW8cuBQAseGyeeJVAo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sM/QIyrwMYvdmnOMSRMPLZASRL0B8bZNBYALxYPCn0SxjmKE8CdD+toFtpMjpAH/i tNR9HBe0doHJcqSyopT9MFAqyJmqJsC9Pg4EY2iSUkAstr+Qsy4vzObYernp2iT+JJ IapSh90J9b9Gexyyf+aTdpwRV1kQot6wwTBW4CQw= From: "law at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106602] riscv: suboptimal codegen for zero_extendsidi2_shifted w/o bitmanip Date: Wed, 02 Nov 2022 17:16:42 +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: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: law 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: 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=3D106602 --- Comment #20 from Jeffrey A. Law --- Yea, I think so (3 shifts). Two for masking, one to put the bits in the ri= ght position. Then we just have to figure out how to combine the initial shift with the 3 for the masking and ultimately result with just two :-)=