From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9021B3857C62; Tue, 26 Jan 2021 11:25:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9021B3857C62 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/97701] [10/11 Regression] aarch64: ICE in extract_constrain_insn since r10-4447-g095f78c6 Date: Tue, 26 Jan 2021 11:25:55 +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: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.3 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, 26 Jan 2021 11:25:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97701 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ktkachov at gcc dot gnu.or= g, | |rsandifo at gcc dot gnu.or= g, | |vmakarov at gcc dot gnu.org --- Comment #6 from Jakub Jelinek --- I can still reproduce with current trunk and it seems it was latent before = and is a ra or backend bug. The problematic insn is created during LRA, and first is: (insn 2616 2615 0 (set (reg:DI 1467) (lo_sum:DI (reg:DI 1468) (symbol_ref/u:DI ("*.LC0") [flags 0x82]))) -1 (nil)) which is fine for: (set (match_operand:DI 0 ("register_operand") ("=3Dr")) (lo_sum:DI (match_operand:DI 1 ("register_operand") ("r")) (match_operand 2 ("aarch64_valid_symref") ("S")))) insn, but later on LRA changes the destination register to: (insn 2616 2615 2617 5 (set (reg:DI 32 v0 [1467]) (lo_sum:DI (reg:DI 1468) (symbol_ref/u:DI ("*.LC0") [flags 0x82]))) 1007 {add_losym_di} (expr_list:REG_DEAD (reg:DI 1468) (nil))) and that doesn't match anymore, as v0 register is not GENERAL_REGS.=