Re: [PATCH] Unconditionally use MAX_EXPR/MIN_EXPR for MAX/MIN intrinsics

2018-08-21 Thread Janne Blomqvist
On Sun, Aug 19, 2018 at 10:47 PM Thomas Koenig wrote: > Hi Janne, > > > On Fri, Aug 10, 2018 at 11:47 PM, Janne Blomqvist < > blomqvist.ja...@gmail.com > >> wrote: > > > >> For floating point types, the question is what MAX(a, NaN) or MIN(a, > >> NaN) should return (where "a" is a normal number).

Re: [PATCH] Unconditionally use MAX_EXPR/MIN_EXPR for MAX/MIN intrinsics

2018-08-19 Thread Thomas Koenig
Hi Janne, On Fri, Aug 10, 2018 at 11:47 PM, Janne Blomqvist wrote: For floating point types, the question is what MAX(a, NaN) or MIN(a, NaN) should return (where "a" is a normal number). There are valid usecases for returning either one, but the Fortran standard doesn't specify which one sh

Re: [PATCH] Unconditionally use MAX_EXPR/MIN_EXPR for MAX/MIN intrinsics

2018-08-19 Thread Janne Blomqvist
PING On Fri, Aug 10, 2018 at 11:47 PM, Janne Blomqvist wrote: > For floating point types, the question is what MAX(a, NaN) or MIN(a, > NaN) should return (where "a" is a normal number). There are valid > usecases for returning either one, but the Fortran standard doesn't > specify which one sho

[PATCH] Unconditionally use MAX_EXPR/MIN_EXPR for MAX/MIN intrinsics

2018-08-10 Thread Janne Blomqvist
For floating point types, the question is what MAX(a, NaN) or MIN(a, NaN) should return (where "a" is a normal number). There are valid usecases for returning either one, but the Fortran standard doesn't specify which one should be chosen. Also, there is no consensus among other tested compilers.