From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 56D2A3858C66; Wed, 19 Jul 2023 09:00:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 56D2A3858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689757232; bh=OfZZNuiYLIWBQ0oSEyUf2pevNZVZ/oBSLNUOeaHANVE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=opfw3vHWN8NsPrZAKNSN3FWjoDr2PXyq2qi4uNJPVuJjsEFo5UWjAfnC6BFKtBcUG RtglvVrbd2pm65gSQ4d8KHrcqe3/eOv323OQFlYi/TdWS1nhxdHlmoTFot8WZTXhZI tW1Jk9NVZfYUfRaiXPeYUZP7siXe5fb/tiI/IEKg= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/110717] Double-word sign-extension missed-optimization Date: Wed, 19 Jul 2023 09:00:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ubizjak at gmail dot com 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=3D110717 --- Comment #5 from Jakub Jelinek --- Thanks. Shouldn't INTVAL (operands[2]) < * BITS_PER_UNIT be UINTVAL (operands[2]) < * BITS_PER_UNIT just to make sure it doesn't trigger for negative?=