qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 17/22] target/loongarch: Add floating point load/store ins


From: Song Gao
Subject: Re: [PATCH v2 17/22] target/loongarch: Add floating point load/store instruction translation
Date: Tue, 27 Jul 2021 16:07:01 +0800
User-agent: Mozilla/5.0 (X11; Linux mips64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hi, Richard.

On 07/23/2021 02:34 PM, Richard Henderson wrote:
> On 7/20/21 11:53 PM, Song Gao wrote:
>> +static bool trans_fldx_d(DisasContext *ctx, arg_fldx_d *a)
>> +{
>> +    TCGv t0;
>> +    TCGv_i64 fp0;
>> +    TCGv Rj = cpu_gpr[a->rj];
>> +    TCGv Rk = cpu_gpr[a->rk];
>> +
>> +    t0 = tcg_temp_new();
>> +    fp0 = tcg_temp_new_i64();
>> +
>> +    if (a->rj == 0 && a->rk == 0) {
>> +        /* Nop */
>> +        return true;
>> +    }
> 
> This is not true.  This is simply a read from address 0 + 0 = 0.
> Similarly for all of the other indexed memory operations.
> 
> And again, you should be using helpers to reduce the replication here.
> 
OK.
> 
> r~

Thanks
Song Gao.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]