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

            Bug ID: 110597
           Summary: [12/13/14 Regression] ICE in emit_move_insn, at
                    expr.cc:4224 on alpha-linux-gnu
           Product: gcc
           Version: 12.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

forwarded from https://bugs.debian.org/1019011

seen with current gcc-12 and gcc-13 branches and trunk on alpha-linux-gnu,
-mbuild-constants triggers the issue

$ cat tst.i
short *a;
void b() { a[0] = a[1] = a[2] = a[3] = 2; }

$ alpha-linux-gnu-gcc-13 -c -msmall-text -msmall-data -mno-fp-regs
-mbuild-constants -mcpu=ev67 -O2 tst.i
during RTL pass: expand
tst.i: In function ‘b’:
tst.i:2:17: internal compiler error: in emit_move_insn, at expr.cc:4224
    2 | void b() { a[0] = a[1] = a[2] = a[3] = 2; }
      |            ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
0x596354 emit_move_insn(rtx_def*, rtx_def*)
        ../../src/gcc/expr.cc:4224
0xe01205 alpha_emit_set_long_const
        ../../src/gcc/config/alpha/alpha.cc:2094
0xe095aa alpha_split_const_mov(machine_mode, rtx_def**)
        ../../src/gcc/config/alpha/alpha.cc:2208
0xe09711 alpha_expand_mov(machine_mode, rtx_def**)
        ../../src/gcc/config/alpha/alpha.cc:2254
0x1168e59 gen_movv4hi(rtx_def*, rtx_def*)
        ../../src/gcc/config/alpha/alpha.md:4463
0x801697 rtx_insn* insn_gen_fn::operator()<rtx_def*, rtx_def*>(rtx_def*,
rtx_def*) const
        ../../src/gcc/recog.h:407
0x801697 emit_move_ccmode
        ../../src/gcc/expr.cc:4043
0x801697 emit_move_insn_1(rtx_def*, rtx_def*)
        ../../src/gcc/expr.cc:4188
0x801a7f emit_move_insn(rtx_def*, rtx_def*)
        ../../src/gcc/expr.cc:4339
0x7dfae7 force_reg(machine_mode, rtx_def*)
        ../../src/gcc/explow.cc:683
0xe0be16 alpha_expand_movmisalign(machine_mode, rtx_def**)
        ../../src/gcc/config/alpha/alpha.cc:2414
0x1169096 gen_movmisalignv4hi(rtx_def*, rtx_def*)
        ../../src/gcc/config/alpha/alpha.md:4485
0xa31258 maybe_expand_insn(insn_code, unsigned int, expand_operand*)
        ../../src/gcc/optabs.cc:8153
0xa31258 expand_insn(insn_code, unsigned int, expand_operand*)
        ../../src/gcc/optabs.cc:8184
0x80ab17 expand_assignment(tree_node*, tree_node*, bool)
        ../../src/gcc/expr.cc:5613
0x701ee2 expand_gimple_stmt_1
        ../../src/gcc/cfgexpand.cc:3946
0x701ee2 expand_gimple_stmt
        ../../src/gcc/cfgexpand.cc:4044
0x706cb7 expand_gimple_basic_block
        ../../src/gcc/cfgexpand.cc:6106
0x7088e6 execute
        ../../src/gcc/cfgexpand.cc:6841
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.

Reply via email to