From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3C3343858D1E; Wed, 20 Mar 2024 14:07:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C3343858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710943657; bh=CRFS7qyF9y7SAP5312u81L9Qq+gU5646aMqzmuE8HjY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jeHycnQo78cotIm4zsGP5NVUdmj/p2n57UmuD+Jmm8w4+mGkNDV2KaP7heA14altA LxdtL/6kaPlJ1a8mGuLCcNCrTFAPrpCFuUJ8mrViRPGCzpc3X3QitJabYFczgP2gl7 avapP42IKRlZJSr1/w0r2rA9aChKG+IjUX5FU1GI= From: "Explorer09 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/89163] Missed optimization: sar and shr equivalent for non-negative numbers Date: Wed, 20 Mar 2024 14:07:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: Explorer09 at gmail dot com 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=3D89163 --- Comment #4 from Kang-Che Sung --- (In reply to Xi Ruoyao from comment #2) > *** Bug 114406 has been marked as a duplicate of this bug. *** I can't say bug 114406 is an exact duplicate of this one. Although my report mainly addresses right shift, I also mentioned division, modulo and multiplication. These can also be optimized where the signedness of the operations do not matter.=