From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7A5923856DF1; Tue, 13 Sep 2022 08:29:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A5923856DF1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663057747; bh=JSArbbepiVN8CtF+/WfC6s9pn4qh55BA3vG7ClJv6+k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=l1Ytu8YDgDcFXnvpy9qfw7JBECG6I5GvwFT1kvoScsowXxvCwaoEg/NApv11dYWsn /G6Zuz22DW2Jwz7knkxyZrI4ybGqJFaDg1U7qSt8xCD7sBb3moaxGG9CIQ0FXzeu7n 55cS3AgTz8+3LPeEFvR2dmNohA/Ncjra/nOL5Ha4= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106878] [11/12/13 Regression] ICE: verify_gimple failed at -O2 with pointers and bitwise caluclation Date: Tue, 13 Sep 2022 08:29:05 +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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D106878 --- Comment #7 from Jakub Jelinek --- Created attachment 53569 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53569&action=3Dedit gcc13-pr106878-4.patch So, I've tried to restrict the verifiers so that they allow pointer argumen= ts only for BIT_AND_EXPR with constant second argument and not for BIT_IOR_EXPR nor BIT_XOR_EXPR. Ran into reassoc issue which was converting (ptr1 =3D=3D= 0 && ptr2 =3D=3D 0) into (ptr1 | ptr2) =3D=3D 0 with BIT_IOR_EXPR in pointer typ= e. This untested patch changes that, will see tonight how far I get with this adjusted patch.=