qemu-devel
[Top][All Lists]
Advanced

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

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


From: Alex Bennée
Subject: Re: fpu/softfloat: a question on BFloat 16 support on QEMU
Date: Mon, 08 Jun 2020 16:50:44 +0100
User-agent: mu4e 1.5.2; emacs 28.0.50

LIU Zhiwei <zhiwei_liu@c-sky.com> 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 float16 but with some slightly different
float parameters for the different encoding?

Like the float16 code it won't have to deal with any of the hardfloat
wrappers so it should look pretty similar.

>
> What's your opinion about it? Should I expand the fpu/softfloat?

bfloat16 is certainly going to become more common that we should have
common softfloat code to handle it. It would be nice is TestFloat could
exercise it as well.

>
> Best Regards,
> Zhiwei


-- 
Alex Bennée



reply via email to

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