https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113193

Oleg Endo <olegendo at gcc dot gnu.org> 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 <olegendo at gcc dot gnu.org> ---
I was able to reproduce the bug with the following compiler options on 13
branch:

-x c++ -std=c++17 -O3 -m4-single -ml -mfsca -mfsrra -funsafe-math-optimizations


combined.cpp: In function 'void transform(const model_transform&, const vec3*,
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 reload
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

Reply via email to