On 2/15/21 5:28 PM, Richard Henderson wrote:
> 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.

This is code movement, but I'll clean in a previous patch.

> Otherwise,
> Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

Thanks!

Reply via email to