Re: [Qemu-devel] [PATCH 3/3] target-ppc: fix sNaN propagation

2011-01-10 Thread Aurelien Jarno
On Mon, Jan 10, 2011 at 06:14:18PM -0600, Peter Maydell wrote: > On 2 January 2011 08:39, Aurelien Jarno wrote: > > The current FPU code returns 0.0 if one of the operand is a > > signaling NaN and the VXSNAN exception is disabled. > > > > fload_invalid_op_excp() doesn't return a qNaN in case of a

Re: [Qemu-devel] [PATCH 3/3] target-ppc: fix sNaN propagation

2011-01-10 Thread Peter Maydell
On 2 January 2011 08:39, Aurelien Jarno wrote: > The current FPU code returns 0.0 if one of the operand is a > signaling NaN and the VXSNAN exception is disabled. > > fload_invalid_op_excp() doesn't return a qNaN in case of a VXSNAN > exception as the operand should be propagated instead of a new

[Qemu-devel] [PATCH 3/3] target-ppc: fix sNaN propagation

2011-01-02 Thread Aurelien Jarno
The current FPU code returns 0.0 if one of the operand is a signaling NaN and the VXSNAN exception is disabled. fload_invalid_op_excp() doesn't return a qNaN in case of a VXSNAN exception as the operand should be propagated instead of a new qNaN to be generated. Fix that by calling fload_invalid_o