Re: [PATCH, PR61219]: Fix sNaN handling in ARM float to double conversion

2014-06-20 Thread Joseph S. Myers
On Sat, 21 Jun 2014, Aurelien Jarno wrote: > Index: gcc/testsuite/gcc.dg/pr59833.c > === > --- gcc/testsuite/gcc.dg/pr59833.c(revision 0) > +++ gcc/testsuite/gcc.dg/pr59833.c(working copy) > @@ -0,0 +1,15 @@ > +/* PR target/59

Re: [PATCH, PR61219]: Fix sNaN handling in ARM float to double conversion

2014-06-20 Thread Aurelien Jarno
On Tue, Jun 17, 2014 at 11:29:01PM +0100, Ramana Radhakrishnan wrote: > On Sun, May 18, 2014 at 10:23 PM, Aurelien Jarno wrote: > > On ARM soft-float, the float to double conversion doesn't convert a sNaN > > to qNaN as the IEEE Std 754 standard mandates: > > > > "Under default exception handling,

Re: [PATCH, PR61219]: Fix sNaN handling in ARM float to double conversion

2014-06-17 Thread Ramana Radhakrishnan
On Sun, May 18, 2014 at 10:23 PM, Aurelien Jarno wrote: > On ARM soft-float, the float to double conversion doesn't convert a sNaN > to qNaN as the IEEE Std 754 standard mandates: > > "Under default exception handling, any operation signaling an invalid > operation exception and for which a floati

Re: [PATCH, PR61219]: Fix sNaN handling in ARM float to double conversion

2014-06-07 Thread Aurelien Jarno
Ping. Note that PR61219 is a duplicate of PR59833, so this patch actually fix PR59833. On Sun, May 18, 2014 at 11:23:38PM +0200, Aurelien Jarno wrote: > On ARM soft-float, the float to double conversion doesn't convert a sNaN > to qNaN as the IEEE Std 754 standard mandates: > > "Under default exc

Re: [PATCH, PR61219]: Fix sNaN handling in ARM float to double conversion

2014-05-18 Thread Aurelien Jarno
On Mon, May 19, 2014 at 02:08:06PM +0800, Joey Ye wrote: > If f2d need fix, then please fix d2f too as current implementation for > both behave similarly. I have done some tests with double to float conversion, and the NaN behaviour is correct. This is due to specific code handling that in d2f: 3

Re: [PATCH, PR61219]: Fix sNaN handling in ARM float to double conversion

2014-05-18 Thread Joey Ye
If f2d need fix, then please fix d2f too as current implementation for both behave similarly. - Joey On Mon, May 19, 2014 at 5:23 AM, Aurelien Jarno wrote: > On ARM soft-float, the float to double conversion doesn't convert a sNaN > to qNaN as the IEEE Std 754 standard mandates: > > "Under defau

[PATCH, PR61219]: Fix sNaN handling in ARM float to double conversion

2014-05-18 Thread Aurelien Jarno
On ARM soft-float, the float to double conversion doesn't convert a sNaN to qNaN as the IEEE Std 754 standard mandates: "Under default exception handling, any operation signaling an invalid operation exception and for which a floating-point result is to be delivered shall deliver a quiet NaN." Gi