From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C7587384CBBD; Tue, 28 Nov 2023 17:52:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C7587384CBBD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701193957; bh=monas9Qwf3eJV41jqxAX+XmltFjJKpxfnUZtVm89ZyE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hE+joFiWpSYssujo1Qmonwx53J2KJ/A6QHTaDDxxuCCJP/+6VAbJH1sx8ISMP4dHb F7cb9HiAWxOxI2JPl59N7vRekHp9JW/vWZVsihwq5VOYEUSCrTW7E2WUWNYMboJyWK Nkd1QRriQF5ucTBSajpEdfYDa4/Sp6j+4pvaO1YU= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112738] [14 Regression] forwprop4 introduces invalid wide signed Boolean values Date: Tue, 28 Nov 2023 17:52: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: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pinskia at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D112738 --- Comment #3 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:68ffaf839883253e0f288862ff20b8005c92df4e commit r14-5938-g68ffaf839883253e0f288862ff20b8005c92df4e Author: Andrew Pinski Date: Mon Nov 27 16:41:25 2023 -0800 MATCH: Fix invalid signed boolean type usage This fixes the incorrect assumption that was done in r14-3721-ge6bcf839894783, that being able to doing the negative after the conversion would be a v= alid thing but really it is not valid for boolean types. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: PR tree-optimization/112738 * match.pd (`(nop_convert)-(convert)a`): Reject when the outer type is boolean. Signed-off-by: Andrew Pinski =