From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E710A3858C5E; Mon, 2 Oct 2023 22:14:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E710A3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696284858; bh=jCwBbc1r2zmEAYNA7MHiG6sFyDXMFYaLUxghKKzeFn0=; h=From:To:Subject:Date:From; b=DPFJew+vi4UjR8kvddK/D7t2IVuhEirbmQQxNFfEOEzibZpxBm3CaaXmxRV+eUWT5 UeBP0mU2YMXxn/Iutj4GGLcCbVxglfma0dKyxwBI6krpymFkIaC+GlnMpozzfkGKqq 7vIjJTl4lhDHymzmK6oLSMZmXEde+Z951A4C2ogY= From: "kristerw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111668] New: vrp2 introduces invalid wide Boolean values Date: Mon, 02 Oct 2023 22:14:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kristerw at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D111668 Bug ID: 111668 Summary: vrp2 introduces invalid wide Boolean values Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: kristerw at gcc dot gnu.org Target Milestone: --- The vrp2 pass introduces an invalid wide Boolean when compiling the function int *a, b, c, d; void foo (void) { for (; d <=3D 0; d++) b &=3D ((a || d) ^ c) =3D=3D 1; } What is happening is that vrp2 changes the IR _Bool _16; _66; gimple_assign to the incorrect _Bool _16; _38; _66; gimple_assign gimple_assign =