https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94678
--- Comment #1 from Fei Yang <felix.yang at huawei dot com> --- crash log for test2.c: during RTL pass: expand foo.c: In function 'f2': foo.c:14:10: internal compiler error: in emit_move_insn, at expr.c:3815 14 | return svadd_m (*x, *y, 1); | ^~~~~~~~~~~~~~~~~~~ 0xd21797 emit_move_insn(rtx_def*, rtx_def*) ../../gcc-git/gcc/expr.c:3814 0xcf52cb copy_to_mode_reg(machine_mode, rtx_def*) ../../gcc-git/gcc/explow.c:634 0x11021f7 maybe_legitimize_operand ../../gcc-git/gcc/optabs.c:7283 0x1102caf maybe_legitimize_operands(insn_code, unsigned int, unsigned int, expand_operand*) ../../gcc-git/gcc/optabs.c:7415 0x1102d9b maybe_gen_insn(insn_code, unsigned int, expand_operand*) ../../gcc-git/gcc/optabs.c:7434 0x1103223 maybe_expand_insn(insn_code, unsigned int, expand_operand*) ../../gcc-git/gcc/optabs.c:7477 0x11032c3 expand_insn(insn_code, unsigned int, expand_operand*) ../../gcc-git/gcc/optabs.c:7508 0x10edec3 expand_vector_broadcast(machine_mode, rtx_def*) ../../gcc-git/gcc/optabs.c:419 0x1859ec3 aarch64_sve::function_expander::add_input_operand(insn_code, rtx_def*) ../../gcc-git/gcc/config/aarch64/aarch64-sve-builtins.cc:2790 0x185b1b3 aarch64_sve::function_expander::use_cond_insn(insn_code, unsigned int) ../../gcc-git/gcc/config/aarch64/aarch64-sve-builtins.cc:3078 0x185b753 aarch64_sve::function_expander::map_to_rtx_codes(rtx_code, rtx_code, int, unsigned int) ../../gcc-git/gcc/config/aarch64/aarch64-sve-builtins.cc:3224 0x18768d7 aarch64_sve::rtx_code_function::expand(aarch64_sve::function_expander&) const ../../gcc-git/gcc/config/aarch64/aarch64-sve-builtins-functions.h:211 0x185b9fb aarch64_sve::function_expander::expand() ../../gcc-git/gcc/config/aarch64/aarch64-sve-builtins.cc:3281 0x185dcab aarch64_sve::expand_builtin(unsigned int, tree_node*, rtx_def*) ../../gcc-git/gcc/config/aarch64/aarch64-sve-builtins.cc:3569 0x17c0ceb aarch64_expand_builtin ../../gcc-git/gcc/config/aarch64/aarch64.c:13147 0xb3782f expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) ../../gcc-git/gcc/builtins.c:7736 0xd4039b expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc-git/gcc/expr.c:11132 0xd3338f expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc-git/gcc/expr.c:8359 0xd28337 store_expr(tree_node*, rtx_def*, int, bool, bool) ../../gcc-git/gcc/expr.c:5755 0xd26d27 expand_assignment(tree_node*, tree_node*, bool) ../../gcc-git/gcc/expr.c:5514 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.