glibc/sysdeps/powerpc/powerpc64/fpu
Joseph Myers f6ef0657e4 Fix powerpc64 ceil, rint etc. on sNaN input (bug 20160).
The powerpc64 versions of ceil, floor, round, trunc, rint, nearbyint
and their float versions return sNaN for sNaN input when they should
return qNaN.  This patch fixes them to add a NaN argument to itself to
quiet sNaNs before returning.

Tested for powerpc64.

	[BZ #20160]
	* sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
	argument to itself before returning the result.
	* sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
	* sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
	* sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
	* sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
	Likewise.
	* sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
	Likewise.
	* sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
	* sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
	* sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
	* sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
	* sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
	* sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
2016-05-27 17:47:54 +00:00
..
multiarch Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
s_ceil.S Fix powerpc64 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:47:54 +00:00
s_ceilf.S Fix powerpc64 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:47:54 +00:00
s_copysign.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
s_copysignf.S
s_copysignl.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
s_fabs.S
s_fabsl.S Avoid "invalid" exceptions from powerpc fabsl (sNaN) (bug 20157). 2016-05-27 15:29:31 +00:00
s_fdim.c
s_floor.S Fix powerpc64 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:47:54 +00:00
s_floorf.S Fix powerpc64 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:47:54 +00:00
s_fma.S Implement accurate fma. 2010-10-13 22:27:03 -04:00
s_fmax.S
s_fmin.S
s_isnan.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
s_llrint.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
s_llrintf.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
s_llround.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
s_llroundf.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
s_lrint.S
s_lround.S
s_lroundf.S
s_nearbyint.S Fix powerpc64 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:47:54 +00:00
s_nearbyintf.S Fix powerpc64 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:47:54 +00:00
s_rint.S Fix powerpc64 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:47:54 +00:00
s_rintf.S Fix powerpc64 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:47:54 +00:00
s_round.S Fix powerpc64 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:47:54 +00:00
s_roundf.S Fix powerpc64 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:47:54 +00:00
s_trunc.S Fix powerpc64 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:47:54 +00:00
s_truncf.S Fix powerpc64 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:47:54 +00:00