From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4E8CA3839405; Tue, 27 Jul 2021 15:08:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E8CA3839405 From: "roger at nextmovesoftware dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/101642] [12 Regression] ice in decompose, at wide-int.h:984 Date: Tue, 27 Jul 2021 15:08:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: roger at nextmovesoftware dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jul 2021 15:08:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101642 Roger Sayle changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roger at nextmovesoftware = dot com --- Comment #11 from Roger Sayle --- Hi Jakub, Sorry for the inconvenience. I've just come up with a near-identical fix. I think it's safe to strip the (symmetric) bswaps in the first transformation, but I'm now paranoid enough= to explicitly convert both operands of the cmp to the same comparison type in = the second transformation. - (cmp (bswap @0) INTEGER_CST@1) - (cmp @0 (bswap @1)))) + (cmp (bswap@0 @1) INTEGER_CST@2) + (with { tree t =3D TREE_TYPE(@0); } + (cmp (convert:t @1) (convert:t (bswap @2))))))=