On 2/14/21 9:58 AM, Philippe Mathieu-Daudé wrote: > + if (a->rs == 0) { > + tcg_gen_movi_i64(cpu_gpr_hi[a->rd], 0); > + } else { > + tcg_gen_mov_i64(cpu_gpr_hi[a->rd], cpu_gpr[a->rs]); > + } > + > + if (a->rt == 0) { > + tcg_gen_movi_i64(cpu_gpr[a->rd], 0); > + } else if (a->rd != a->rt) { > + tcg_gen_mov_i64(cpu_gpr[a->rd], cpu_gpr[a->rt]); > + }
Use gen_load_gpr. Otherwise, Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~