From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A786C3858D35; Thu, 29 Jun 2023 23:10:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A786C3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688080244; bh=B60uQzRVsR7trVCvMNl1dVP/c5ftgfLQeKlGr0VbE50=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vMPYN5Hja2WifNRsyG/lLq765ksi/d4OdYjmf7JMhN4dJBLrHvsAu/B2+mW5rIKS9 GOgpyzkuOGbPxbRArHK/QlUk7mYYkCUJnKhQPsQ4m8itXykRRipVsEotfSaPCE+lms m8P8+8YBOxGI/+rnUmkFV4ptpm1okWIBQkIqEStk= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110487] [12/13/14 Regression] invalid wide Boolean value Date: Thu, 29 Jun 2023 23:10:44 +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: pinskia 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: 12.4 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=3D110487 --- Comment #3 from Andrew Pinski --- /* Optimize # x_5 in range [cst1, cst2] where cst2 =3D cst1 + 1 x_5 ? cstN ? cst4 : cst3 # op is =3D=3D or !=3D and N is 1 or 2 to r_6 =3D x_5 + (min (cst3, cst4) - cst1) or r_6 =3D (min (cst3, cst4) + cst1) - x_5 depending on op, N and which of cst3 and cst4 is smaller. This was originally done by two_value_replacement in phiopt (PR 88676). = */ is going to have the same issue I think.=