qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 0/6] target/riscv: NaN-boxing for multiple precison


From: Richard Henderson
Subject: Re: [PATCH 0/6] target/riscv: NaN-boxing for multiple precison
Date: Fri, 10 Jul 2020 09:03:58 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

On 7/10/20 12:03 AM, LIU Zhiwei wrote:
> The comment is moving both inputs check and the result nan-boxing code to
> helper functions.
> 
> In my opinion, it doesn't matter whether put them into helper functions or 
> into
> translation functions.
> More importantly, we should add inputs check and result nan-boxing for all
> single float point instructions.
> 
> If you insist on we should move it to helper functions, I'd like to.:-)

I don't insist, but I think it makes sense to do so.

Less code in translate means less time in the JIT, and more sharing of the 
icache.

Sometimes it's a tradeoff, but in this case because we will always call a
helper, I think that the benefits are all positive to move the extra code into
the helper.


r~




reply via email to

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