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

            Bug ID: 118872
           Summary: RISCV: internal compiler error: in emit_move_insn, at
                    expr.cc:4636 for rvv
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: majin at gcc dot gnu.org
  Target Milestone: ---

#include <riscv_vector.h>

vfloat32m2_t foo (vfloat16m1_t a, size_t vl)
{
  return __riscv_vfwcvt_f_f_v_f32m2(a, vl);
}

riscv64-unknown-linux-gnu-gcc bug.c -march=rv64gcv -S -O2

during RTL pass: expand
bug.c: In function 'foo':
bug.c:10:10: internal compiler error: in emit_move_insn, at expr.cc:4636
   10 |   return __riscv_vfwcvt_f_f_v_f32m2(a, vl);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x323c436 internal_error(char const*, ...)
        /rvhome/jin.ma/code/master/gcc/gcc/diagnostic-global-context.cc:517
0xdcca78 fancy_abort(char const*, int, char const*)
        /rvhome/jin.ma/code/master/gcc/gcc/diagnostic.cc:1722
0xaf148f emit_move_insn(rtx_def*, rtx_def*)
        /rvhome/jin.ma/code/master/gcc/gcc/expr.cc:4636
0x10b84f3 copy_to_mode_reg(machine_mode, rtx_def*)
        /rvhome/jin.ma/code/master/gcc/gcc/explow.cc:659
0x13d1f24 maybe_legitimize_operand
        /rvhome/jin.ma/code/master/gcc/gcc/optabs.cc:8020
0x13d1f24 maybe_legitimize_operands(insn_code, unsigned int, unsigned int,
expand_operand*)
        /rvhome/jin.ma/code/master/gcc/gcc/optabs.cc:8163
0x13d229d maybe_gen_insn(insn_code, unsigned int, expand_operand*)
        /rvhome/jin.ma/code/master/gcc/gcc/optabs.cc:8182
0x13d24bc maybe_expand_insn(insn_code, unsigned int, expand_operand*)
        /rvhome/jin.ma/code/master/gcc/gcc/optabs.cc:8237
0x1ac058d riscv_vector::function_expander::generate_insn(insn_code)
       
/rvhome/jin.ma/code/master/gcc/gcc/config/riscv/riscv-vector-builtins.cc:4471
0x1ac985c riscv_vector::function_expander::expand()
       
/rvhome/jin.ma/code/master/gcc/gcc/config/riscv/riscv-vector-builtins.h:688
0x1ac985c riscv_vector::expand_builtin(unsigned int, tree_node*, rtx_def*)
       
/rvhome/jin.ma/code/master/gcc/gcc/config/riscv/riscv-vector-builtins.cc:4958
0xf76ca1 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
        /rvhome/jin.ma/code/master/gcc/gcc/builtins.cc:7831
0x10d8931 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        /rvhome/jin.ma/code/master/gcc/gcc/expr.cc:12482
0x10e4dc8 store_expr(tree_node*, rtx_def*, int, bool, bool)
        /rvhome/jin.ma/code/master/gcc/gcc/expr.cc:6771
0x10e6382 expand_assignment(tree_node*, tree_node*, bool)
        /rvhome/jin.ma/code/master/gcc/gcc/expr.cc:6492
0xf9f5b5 expand_call_stmt
        /rvhome/jin.ma/code/master/gcc/gcc/cfgexpand.cc:3142
0xf9f5b5 expand_gimple_stmt_1
        /rvhome/jin.ma/code/master/gcc/gcc/cfgexpand.cc:4217
0xf9f5b5 expand_gimple_stmt
        /rvhome/jin.ma/code/master/gcc/gcc/cfgexpand.cc:4364
0xfa551c expand_gimple_tailcall
        /rvhome/jin.ma/code/master/gcc/gcc/cfgexpand.cc:4410
0xfa551c expand_gimple_basic_block
        /rvhome/jin.ma/code/master/gcc/gcc/cfgexpand.cc:6401
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to