From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 618803858D3C; Wed, 24 Jan 2024 05:54:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 618803858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706075673; bh=4m++IjKi68YwdV5tMK4uRgExHl34K4LAHWoWfJ8E65o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VHKI8zu6HGcRtHd8XcaFHER3nNv1Jv7FjGeHfOuD4G7EneUjODUuB7xnSpR0NOdAh UL3vK7mLYg/4vpQON9+lM2SUOcgRd/zebp6aS60cuBluGdjlv8Y4wKPqSB1nNVkbzk W03kqwUGcyNP8GLvfZTAIJkq8UnpB4yAcNHgYI8Q= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113574] wrong code with shift and _BitInt(1) at any opt level Date: Wed, 24 Jan 2024 05:54:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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=3D113574 --- Comment #2 from Andrew Pinski --- convert uses TYPE_SIZE .... /* If shift count is less than the width of the truncated t= ype, really shift. */ if (tree_int_cst_lt (TREE_OPERAND (expr, 1), TYPE_SIZE (typ= e))) Really?????? That dates from the begining of git history too :).=