Re: [PATCH] real: Fix roundeven on inf/nan [PR93663]

2020-02-12 Thread Joseph Myers
On Wed, 12 Feb 2020, Jakub Jelinek wrote: > As can be seen in the testcase, roundeven with inf or nan arguments > ICE because of those asserts where nothing prevents from is_halfway_below > being called with those arguments. > > The following patch fixes that by just returning false for rvc_inf/r

[PATCH] real: Fix roundeven on inf/nan [PR93663]

2020-02-11 Thread Jakub Jelinek
On Fri, Aug 23, 2019 at 08:38:43PM +, Joseph Myers wrote: > > +/* Return true if R is halfway between two integers, else return > > + false. The function is not valid for rvc_inf and rvc_nan classes. */ > > + > > +bool > > +is_halfway_below (const REAL_VALUE_TYPE *r) > > +{ > > + gcc_asser