https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97417
--- Comment #18 from Levy <admin at levyhsu dot com> --- if (GET_MODE_CLASS (mode) == MODE_INT && GET_MODE_SIZE (mode) < UNITS_PER_WORD && can_create_pseudo_p() && MEM_P (src)) { int extend = (LOAD_EXTEND_OP (mode) == ZERO_EXTEND); rtx temp_reg = force_reg (word_mode, convert_to_mode (word_mode, src, extend)); riscv_emit_move(dest, temp_reg); return true; } tried to insert code at the beginning of riscv_legitimize_move() but seems convert_to_mode() raised seg fault druing make