From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 453903858422; Thu, 29 Jun 2023 19:09:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 453903858422 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688065789; bh=0NNqdiJfE6c+/kdTv/wBoNdMLBlrva+8kShwpTVtyQk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rN15v8APVIbikwhCsLih2vQPQ+dRLq+n8pQ7WncDv5OaCE+oUjqE5XO3jIfkmT3Oa wC3UMIzBjKD/qdS5zoaxtAFwAf+YS0XMFU/iiO+SYRO9wPaUCO8RrNBa2OB4Tv/GyF 9eeA7EeAe1zXBlK/hCl/rNDjs3gq4dA8aMVevcbU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110487] invalid wide Boolean value Date: Thu, 29 Jun 2023 19:09:48 +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: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed bug_status keywords cf_reconfirmed_on 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 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED Keywords| |wrong-code Last reconfirmed| |2023-06-29 --- Comment #1 from Andrew Pinski --- Applying pattern match.pd:4705, gimple-match-10.cc:15878 gimple_simplified to _38 =3D () _16; _66 =3D -_38; Global Exported: _66 =3D [irange] [-1, 0] Folded into: _66 =3D -_38; /* a ? -1 : 0 -> -a. No need to check the TYPE_PRECISION not being 1 here as the powerof2cst case above will handle that case correctly. = */ (if (INTEGRAL_TYPE_P (type) && integer_all_onesp (@1)) (negate (convert (convert:boolean_type_node @0)))))) I guess is mine ....=