From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1D78B385802E; Wed, 31 Mar 2021 11:50:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D78B385802E From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/98601] [8/9/10/11 Regression] aarch64: ICE in rtx_addr_can_trap_p_1, at rtlanal.c:467 Date: Wed, 31 Mar 2021 11:50:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 11.0 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 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: Wed, 31 Mar 2021 11:50:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98601 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Component|target |rtl-optimization --- Comment #3 from Richard Biener --- For some reason we have (insn 5 9 12 2 (set (mem (reg/v/f:DI 0 x0 [orig:92 b ] [92]) [0 *b_2(D)+0 A= 8]) (asm_operands ("") ("=3DQ") 0 [] [] [] t.c:3)) "t.c":3:3 -1 (expr_list:REG_DEAD (reg/v/f:DI 0 x0 [orig:92 b ] [92]) (nil))) on x86_64 we get (with a "=3Dm" constraint): (insn 6 3 12 2 (parallel [ (set (mem (reg:DI 5 di [83]) [0 *b_2(D)+0 A8]) (asm_operands ("") ("=3Dm") 0 [] [] [] t.c:2)) (clobber (reg:CC 17 flags)) ]) "t.c":2:3 -1 (expr_list:REG_DEAD (reg:DI 5 di [83]) (expr_list:REG_UNUSED (reg:CC 17 flags) (nil)))) I suppose we could special-case the VOIDmode/unknown-size and make it possibly trapping (conservatively so). I'm sure rejecting the code will break existing code. That said, I can't reproduce on x86_64. Target independent testcase (still ICEs on aarch64): void a(void *b) { asm("" : "=3Dm"(*b)); }=