Re: [PATCH] riscv: Format Rd of FMV.W.X with NoN-boxing

2020-01-27 Thread Ian Jiang
Got it. As the first step, I just summit a new patch: [PATCH] riscv: Add helper to make NaN-boxing for FP register I'd like to carry out other fixes after this patch is reviewed. Richard Henderson 于2020年1月24日周五 上午2:53写道: > > On 1/22/20 6:05 PM, Ian Jiang wrote: > > But I am not clear where to cal

Re: [PATCH] riscv: Format Rd of FMV.W.X with NoN-boxing

2020-01-23 Thread Richard Henderson
On 1/22/20 6:05 PM, Ian Jiang wrote: > But I am not clear where to call this new helper gen_nanbox_fpr(). Is > there a position that could affect all floating-point instructions? So > that we don't have to modify so many translating functions. Please > give more details. No, this will have to be c

Re: [PATCH] riscv: Format Rd of FMV.W.X with NoN-boxing

2020-01-22 Thread Ian Jiang
Richard Henderson 于2020年1月23日周四 上午11:07写道: > > On 1/22/20 2:48 PM, Ian Jiang wrote: > > Richard Henderson 于2020年1月23日周四 上午1:11写道: > >> > >> On 1/21/20 11:53 PM, Ian Jiang wrote: > >>> -- > >>> Ian Jiang > >>> > >>> Richard Henderson 于2020年1月22日周三 下午4:53写道: > > On 1/21/20 9:24 PM, Ian J

Re: [PATCH] riscv: Format Rd of FMV.W.X with NoN-boxing

2020-01-22 Thread Richard Henderson
On 1/22/20 2:48 PM, Ian Jiang wrote: > Richard Henderson 于2020年1月23日周四 上午1:11写道: >> >> On 1/21/20 11:53 PM, Ian Jiang wrote: >>> -- >>> Ian Jiang >>> >>> Richard Henderson 于2020年1月22日周三 下午4:53写道: On 1/21/20 9:24 PM, Ian Jiang wrote: > For FMV.W.X that moves the lower 32 bits of an i

Re: [PATCH] riscv: Format Rd of FMV.W.X with NoN-boxing

2020-01-22 Thread Ian Jiang
Richard Henderson 于2020年1月23日周四 上午1:11写道: > > On 1/21/20 11:53 PM, Ian Jiang wrote: > > -- > > Ian Jiang > > > > Richard Henderson 于2020年1月22日周三 下午4:53写道: > >> > >> On 1/21/20 9:24 PM, Ian Jiang wrote: > >>> For FMV.W.X that moves the lower 32 bits of an integer register to a > >>> floating-point

Re: [PATCH] riscv: Format Rd of FMV.W.X with NoN-boxing

2020-01-22 Thread Richard Henderson
On 1/21/20 11:53 PM, Ian Jiang wrote: > -- > Ian Jiang > > Richard Henderson 于2020年1月22日周三 下午4:53写道: >> >> On 1/21/20 9:24 PM, Ian Jiang wrote: >>> For FMV.W.X that moves the lower 32 bits of an integer register to a >>> floating-point register, Rd should encoded with NoN-boxing scheme. >>> Note:

Re: [PATCH] riscv: Format Rd of FMV.W.X with NoN-boxing

2020-01-22 Thread Ian Jiang
-- Ian Jiang Richard Henderson 于2020年1月22日周三 下午4:53写道: > > On 1/21/20 9:24 PM, Ian Jiang wrote: > > For FMV.W.X that moves the lower 32 bits of an integer register to a > > floating-point register, Rd should encoded with NoN-boxing scheme. > > Note: This applies to RV64 only. > > > > Signed-off-b

Re: [PATCH] riscv: Format Rd of FMV.W.X with NoN-boxing

2020-01-22 Thread Richard Henderson
On 1/21/20 9:24 PM, Ian Jiang wrote: > For FMV.W.X that moves the lower 32 bits of an integer register to a > floating-point register, Rd should encoded with NoN-boxing scheme. > Note: This applies to RV64 only. > > Signed-off-by: Ian Jiang > --- > target/riscv/insn_trans/trans_rvf.inc.c | 1 + >

[PATCH] riscv: Format Rd of FMV.W.X with NoN-boxing

2020-01-21 Thread Ian Jiang
For FMV.W.X that moves the lower 32 bits of an integer register to a floating-point register, Rd should encoded with NoN-boxing scheme. Note: This applies to RV64 only. Signed-off-by: Ian Jiang --- target/riscv/insn_trans/trans_rvf.inc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target