Re: [Qemu-devel] Help with softfloat.c code

2018-09-17 Thread Programmingkid
> On Sep 17, 2018, at 2:51 PM, Peter Maydell wrote: > > On 17 September 2018 at 18:56, Programmingkid > wrote: >> >>> On Sep 17, 2018, at 1:52 PM, Peter Maydell wrote: >>> >>> On 17 September 2018 at 18:48, Programmingkid >>> wrote: What I hope to do is implement a PowerPC CPU flag

Re: [Qemu-devel] Help with softfloat.c code

2018-09-17 Thread Peter Maydell
On 17 September 2018 at 18:56, Programmingkid wrote: > >> On Sep 17, 2018, at 1:52 PM, Peter Maydell wrote: >> >> On 17 September 2018 at 18:48, Programmingkid >> wrote: >>> What I hope to do is implement a PowerPC CPU flag that indicates if an >>> rounded result is inexact. >> >> How is this

Re: [Qemu-devel] Help with softfloat.c code

2018-09-17 Thread Peter Maydell
On 17 September 2018 at 18:48, Programmingkid wrote: > What I hope to do is implement a PowerPC CPU flag that indicates if an > rounded result is inexact. How is this different from the float_flag_inexact flag that softfloat already supports ? thanks -- PMM

Re: [Qemu-devel] Help with softfloat.c code

2018-09-17 Thread Programmingkid
> On Sep 17, 2018, at 1:52 PM, Peter Maydell wrote: > > On 17 September 2018 at 18:48, Programmingkid > wrote: >> What I hope to do is implement a PowerPC CPU flag that indicates if an >> rounded result is inexact. > > How is this different from the float_flag_inexact flag that softfloat al

[Qemu-devel] Help with softfloat.c code

2018-09-17 Thread Programmingkid
In the softfloat.c file there is a function called float64_add(). What I need is a way to pack and canonicalize a FloatParts value. There doesn't appear to be any way. This is what I have tried so far, but the results are not good. The intermediate_result and the rounded_result should be close