Re: [Qemu-devel] [RFC PATCH 09/30] softfloat: propagate signalling NaNs in MINMAX

2017-10-15 Thread Richard Henderson
On 10/13/2017 09:24 AM, Alex Bennée wrote: > -if (float ## s ## _is_quiet_nan(a, status) && \ > +if (float ## s ## _is_signaling_nan(a, status) || \ > +float ## s ## _is_signaling_nan(b, status)) { \ > +propag

[Qemu-devel] [RFC PATCH 09/30] softfloat: propagate signalling NaNs in MINMAX

2017-10-13 Thread Alex Bennée
While a comparison between a QNaN and a number will return the number it is not the same with a signaling NaN. In this case the SNaN will "win" and after potentially raising an exception it will be quietened. Signed-off-by: Alex Bennée --- fpu/softfloat.c | 8 ++-- 1 file changed, 6 insertio