From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 200773858D37; Fri, 8 Sep 2023 03:58:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 200773858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694145537; bh=xyfOaZRbKn/6+jwbmoi5FrFqH7UjYyHp9lwNzxGGBVM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tB2jxIFzodaBbO7xDmPbDXUWaUduPJqNmgw3PluBLvAMbfIyjHYDSWf4XiRkw22Ou v/c4w6mp0xWlULsrlI2AKfXaSBKy6SBo5S/Dfs4hewrolE7fq/glNM3gCY2RSCL3lZ YMyjkL5q48JZq96+FeboM4fSZ/ga79iwPMyumFUE= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111334] ICE is reported during the combine pass optimization Date: Fri, 08 Sep 2023 03:58:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: component 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=3D111334 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Component|rtl-optimization |target --- Comment #4 from Andrew Pinski --- (In reply to chenglulu from comment #3) > This involves the template di3_fake: > (define_insn "di3_fake" > [(set (match_operand:DI 0 "register_operand" "=3Dr,&r,&r") > (sign_extend:DI > (any_div:SI (match_operand:DI 1 "register_operand" "r,r,0") > (match_operand:DI 2 "register_operand" "r,r,r"))))] That pattern definitely looks broken. Divide's operands' mode must match the mode of the divide IIRC.=