From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 80F1B3858C53; Fri, 5 Jan 2024 05:39:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80F1B3858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704433191; bh=hQbFOoVqPbrxSN9nRs5FvhBK1woy16iegIpr5p+rzVo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=b5RFnakivddqFUM446DdKGMiRm7RG+muejFvRnZSY7nrxHNtYxCUeB0GNL0WSh0KY oi8f2ms8t+L91FjV46msdw534KpcrbcJMZj7H77tAA4RpBh+FDjjGql0ugT/VtfX95 skySbDqqeWK++5OwxKhp0NYPCTA8/kdhwCol33es= From: "olegendo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113193] [SH] ICE in gen_reg_rtx, at emit-rtl.cc:1177 with -mfcsa -funsafe-math-operations Date: Fri, 05 Jan 2024 05:39:50 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: olegendo at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cf_known_to_fail version bug_status keywords everconfirmed cf_reconfirmed_on 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=3D113193 Oleg Endo changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |13.2.1 Version|14.0 |13.0 Status|UNCONFIRMED |NEW Keywords| |ra Ever confirmed|0 |1 Last reconfirmed| |2024-01-05 --- Comment #1 from Oleg Endo --- I was able to reproduce the bug with the following compiler options on 13 branch: -x c++ -std=3Dc++17 -O3 -m4-single -ml -mfsca -mfsrra -funsafe-math-optimiz= ations combined.cpp: In function 'void transform(const model_transform&, const vec= 3*, int, float*)': combined.cpp:574:1: internal compiler error: in gen_reg_rtx, at emit-rtl.cc:1171 0x61da53 gen_reg_rtx(machine_mode) ../../gcc/gcc/emit-rtl.cc:1171 0x9e8cc1 copy_to_reg(rtx_def*) ../../gcc/gcc/explow.cc:622 0x9d7727 operand_subword_force(rtx_def*, poly_int<1u, unsigned long>, machine_mode) ../../gcc/gcc/emit-rtl.cc:1812 0xa0eddc emit_move_multi_word ../../gcc/gcc/expr.cc:4129 0xa12bdb gen_move_insn(rtx_def*, rtx_def*) ../../gcc/gcc/expr.cc:4359 0xccfcda gen_reload ../../gcc/gcc/reload1.cc:8614 0xcd8956 emit_output_reload_insns ../../gcc/gcc/reload1.cc:7667 0xcd8956 do_output_reload ../../gcc/gcc/reload1.cc:7939 0xcd8956 emit_reload_insns ../../gcc/gcc/reload1.cc:8003 0xcd8956 reload_as_needed ../../gcc/gcc/reload1.cc:4543 0xcdc460 reload(rtx_insn*, int) ../../gcc/gcc/reload1.cc:1047 0xb78004 do_reload ../../gcc/gcc/ira.cc:5975 0xb78004 execute ../../gcc/gcc/ira.cc:6149 With added -mlra: ombined.cpp: In function 'void transform(const model_transform&, const vec3= *, int, float*)': combined.cpp:574:1: internal compiler error: maximum number of generated re= load insns per insn achieved (90) 0xbd0699 lra_constraints(bool) ../../gcc/gcc/lra-constraints.cc:5258 0xbbc182 lra(_IO_FILE*) ../../gcc/gcc/lra.cc:2375 0xb77999 do_reload ../../gcc/gcc/ira.cc:5963 0xb77999 execute ../../gcc/gcc/ira.cc:6149=