Re: [PATCH 2/3] softfloat: add APIs to handle alternative sNaN propagation

2020-08-14 Thread Richard Henderson
On 8/14/20 1:59 AM, Chih-Min Chao wrote: > By the way,  the other patches have been queued in softfloat-next.  > Do I need to resend the other two patches in the next version or just this > one ? Just this one. Thanks. r~

Re: [PATCH 2/3] softfloat: add APIs to handle alternative sNaN propagation

2020-08-14 Thread Chih-Min Chao
On Fri, Aug 14, 2020 at 1:21 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 7/30/20 2:52 AM, Chih-Min Chao wrote: > > For "fmax/fmin ft0, ft1, ft2" and if one of the inputs is sNaN, > > The original logic > > return NaN and set invalid flag if ft1 == sNaN || ft2 == sNan > >

Re: [PATCH 2/3] softfloat: add APIs to handle alternative sNaN propagation

2020-08-13 Thread Richard Henderson
On 7/30/20 2:52 AM, Chih-Min Chao wrote: > For "fmax/fmin ft0, ft1, ft2" and if one of the inputs is sNaN, > The original logic > return NaN and set invalid flag if ft1 == sNaN || ft2 == sNan > > The alternative path > set invalid flag if ft1 == sNaN || ft2 == sNaN > return NaN if

[PATCH 2/3] softfloat: add APIs to handle alternative sNaN propagation

2020-07-30 Thread Chih-Min Chao
For "fmax/fmin ft0, ft1, ft2" and if one of the inputs is sNaN, The original logic return NaN and set invalid flag if ft1 == sNaN || ft2 == sNan The alternative path set invalid flag if ft1 == sNaN || ft2 == sNaN return NaN if ft1 == sNaN && ft2 == sNaN The ieee754 spec allows