Re: [PATCH], PowerPC IEEE 128-bit fp, #11 (enable libgcc conversions)

2016-01-04 Thread Michael Meissner
On Thu, Dec 31, 2015 at 08:29:58PM +, Joseph Myers wrote: > On Tue, 29 Dec 2015, Michael Meissner wrote: > > > +/* __eqkf2 returns 0 if equal, or 1 if not equal or NaN. */ > > +CMPtype > > +__eqkf2_hw (TFtype a, TFtype b) > > +{ > > + return (__builtin_isunordered (a, b) || (a != b)) ? 1 : 0

Re: [PATCH], PowerPC IEEE 128-bit fp, #11 (enable libgcc conversions)

2015-12-31 Thread Joseph Myers
On Tue, 29 Dec 2015, Michael Meissner wrote: > +/* __eqkf2 returns 0 if equal, or 1 if not equal or NaN. */ > +CMPtype > +__eqkf2_hw (TFtype a, TFtype b) > +{ > + return (__builtin_isunordered (a, b) || (a != b)) ? 1 : 0; This is more complicated than necessary. "return a != b;" will suffice.

Re: [PATCH], PowerPC IEEE 128-bit fp, #11 (enable libgcc conversions)

2015-12-29 Thread David Edelsohn
On Tue, Dec 29, 2015 at 11:38 AM, Michael Meissner wrote: > This patch enables support of the __float128 software emulation functions in > libgcc. The patch is reworked from previous versions of this patch (listed as > patch #8). > > This patch adds support for declaring emulation functions that

Re: [PATCH], PowerPC IEEE 128-bit fp, #11 (enable libgcc conversions)

2015-12-29 Thread Michael Meissner
In my last patch (#11) on libgcc, I didn't submit the latest version of the patch that allowed it to work on older systems that did not have the include sys/auxv.h. This patch fixes that by moving the include of sys/auxv.h to within the code protected by the define that says we have IEEE 128-bit fl

[PATCH], PowerPC IEEE 128-bit fp, #11 (enable libgcc conversions)

2015-12-29 Thread Michael Meissner
This patch enables support of the __float128 software emulation functions in libgcc. The patch is reworked from previous versions of this patch (listed as patch #8). This patch adds support for declaring emulation functions that either use the software emulation functions from the soft-fp subdire