Re: [RFC v2 19/76] target/riscv: rvv-0.9: add narrower_nanbox_fpr helper

2020-07-23 Thread Richard Henderson
On 7/23/20 12:13 AM, Frank Chang wrote: > On Thu, Jul 23, 2020 at 3:15 AM Richard Henderson > > wrote: > > On 7/22/20 2:15 AM, frank.ch...@sifive.com > wrote: > > From: Frank Chang >

Re: [RFC v2 19/76] target/riscv: rvv-0.9: add narrower_nanbox_fpr helper

2020-07-23 Thread Frank Chang
On Thu, Jul 23, 2020 at 3:15 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 7/22/20 2:15 AM, frank.ch...@sifive.com wrote: > > From: Frank Chang > > > > For floating-point operations, the scalar can be taken from a scalar > > f register. If FLEN > SEW, the value in the f

Re: [RFC v2 19/76] target/riscv: rvv-0.9: add narrower_nanbox_fpr helper

2020-07-22 Thread Richard Henderson
On 7/22/20 2:15 AM, frank.ch...@sifive.com wrote: > From: Frank Chang > > For floating-point operations, the scalar can be taken from a scalar > f register. If FLEN > SEW, the value in the f registers is checked for > a valid NaN-boxed value, in which case the least-significant SEW bits > of the

[RFC v2 19/76] target/riscv: rvv-0.9: add narrower_nanbox_fpr helper

2020-07-22 Thread frank . chang
From: Frank Chang For floating-point operations, the scalar can be taken from a scalar f register. If FLEN > SEW, the value in the f registers is checked for a valid NaN-boxed value, in which case the least-significant SEW bits of the f register are used, else the canonical NaN value is used.