From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 021353943540; Thu, 8 Apr 2021 13:21:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 021353943540 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/99830] [11 Regression] ICE: in lra_eliminate_regs_1, at lra-eliminations.c:659 with -O2 -fno-expensive-optimizations -fno-split-wide-types -g Date: Thu, 08 Apr 2021 13:21:58 +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: ice-on-valid-code, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority keywords 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: Thu, 08 Apr 2021 13:21:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99830 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 Keywords| |ra CC| |segher at gcc dot gnu.org --- Comment #2 from Richard Biener --- #10 0x00000000011550f2 in process_insn_for_elimination (insn=3D0x7ffff65776= 80,=20 final_p=3Dtrue, first_p=3Dfalse) at ../../src/trunk/gcc/lra-elimination= s.c:1333 1333 eliminate_regs_in_insn (insn, final_p, first_p, 0); (gdb) p debug_rtx (insn) (debug_insn 18 4 19 2 (var_location:HI u16_1 (subreg:HI (ashiftrt:SI (sign_extend:SI (subreg:HI (reg/v:SI 100 [ u16_1 ]) 0)) (zero_extend:SI (subreg:QI (ior:TI (and:TI (mem/c:TI (reg/f:DI = 65 ap) [1 u128_1+0 S16 A128]) (const_int -16711681 [0xffffffffff00ffff])) (ashift:TI (zero_extend:TI (clobber:TI (const_int 0 [0]))) (const_int 16 [0x10]))) 0))) 0)) "t.c":4:9 -1 (nil)) and it chokes on the (zero_extend:TI (clobber ...)) which combine introduce= s. Before combine it was (debug_insn 18 17 19 2 (var_location:HI u16_1 (subreg:HI (ashiftrt:SI (sign_extend:SI (subreg:HI (reg/v:SI 100 [ u16_1 ]) 0)) (zero_extend:SI (subreg:QI (reg/v:TI 103 [ u128_1 ]) 0))) 0)) "t.c":4:9 -1 (nil)) not sure what goes wrong but I suppose if sth doesn't work out combine shou= ld reset the debug_insn rather than leaving garbage. Possibly latent of cours= e.=