Re: fpu/softfloat: a question on BFloat 16 support on QEMU

2020-06-26 Thread Richard Henderson
On 6/17/20 12:09 AM, LIU Zhiwei wrote: > If I want to test bfloat16 interfaces, could you give some advice? Should I > need to modify berkeley-testfloat-3 to support the bfloat16 test. I think we'll have to write some new code for this. Easiest might be: (1) shift left to convert bfloat16 to fl

Re: fpu/softfloat: a question on BFloat 16 support on QEMU

2020-06-17 Thread LIU Zhiwei
On 2020/6/8 23:50, Alex Bennée wrote: LIU Zhiwei writes: Hi Richard, I am doing bfloat16 support on QEMU. Once I tried to reuse float32 interface, but I couldn't properly process rounding in some insns like fadd. What do you mean by re-use the float32 interface? Isn't bfloat16 going to be

Re: fpu/softfloat: a question on BFloat 16 support on QEMU

2020-06-09 Thread LIU Zhiwei
On 2020/6/9 17:42, Alex Bennée wrote: LIU Zhiwei writes: On 2020/6/8 23:50, Alex Bennée wrote: LIU Zhiwei writes: Hi Richard, I am doing bfloat16 support on QEMU. Once I tried to reuse float32 interface, but I couldn't properly process rounding in some insns like fadd. What do you me

Re: fpu/softfloat: a question on BFloat 16 support on QEMU

2020-06-09 Thread Alex Bennée
LIU Zhiwei writes: > On 2020/6/8 23:50, Alex Bennée wrote: >> LIU Zhiwei writes: >> >>> Hi Richard, >>> >>> I am doing bfloat16 support on QEMU. >>> >>> Once I tried to reuse float32 interface, but I couldn't properly process >>> rounding in some insns like fadd. >> What do you mean by re-use

Re: fpu/softfloat: a question on BFloat 16 support on QEMU

2020-06-08 Thread LIU Zhiwei
On 2020/6/9 3:34, Richard Henderson wrote: On 6/8/20 5:53 AM, LIU Zhiwei wrote: Hi Richard, I am doing bfloat16 support on QEMU. Once I tried to reuse float32 interface, but I couldn't properly process rounding in some insns like fadd. What's your opinion about it? Should I expand the fpu/

Re: fpu/softfloat: a question on BFloat 16 support on QEMU

2020-06-08 Thread LIU Zhiwei
On 2020/6/8 23:50, Alex Bennée wrote: LIU Zhiwei writes: Hi Richard, I am doing bfloat16 support on QEMU. Once I tried to reuse float32 interface, but I couldn't properly process rounding in some insns like fadd. What do you mean by re-use the float32 interface? Once I think bfloat16 can

Re: fpu/softfloat: a question on BFloat 16 support on QEMU

2020-06-08 Thread Richard Henderson
On 6/8/20 5:53 AM, LIU Zhiwei wrote: > Hi Richard, > > I am doing bfloat16 support on QEMU. > > Once I tried to reuse float32 interface, but I couldn't properly process > rounding in some insns like fadd. > > What's your opinion about it? Should I expand the fpu/softfloat? Yes, we need to expan

Re: fpu/softfloat: a question on BFloat 16 support on QEMU

2020-06-08 Thread Alex Bennée
LIU Zhiwei writes: > Hi Richard, > > I am doing bfloat16 support on QEMU. > > Once I tried to reuse float32 interface, but I couldn't properly process > rounding in some insns like fadd. What do you mean by re-use the float32 interface? Isn't bfloat16 going to be pretty much the same as float

fpu/softfloat: a question on BFloat 16 support on QEMU

2020-06-08 Thread LIU Zhiwei
Hi Richard, I am doing bfloat16 support on QEMU. Once I tried to reuse float32 interface, but I couldn't properly process rounding in some insns like fadd. What's your opinion about it? Should I expand the fpu/softfloat? Best Regards, Zhiwei