glibc/sysdeps/powerpc/powerpc32/fpu
Joseph Myers debf7618f6 Fix powerpc32 ceil, rint etc. on sNaN input (bug 20160).
The powerpc32 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.  The powerpc64 versions, which have the
same bug, will be addressed separately.

Tested for powerpc32.

	[BZ #20160]
	* sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
	argument to itself before returning the result.
	* sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
	Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
	Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
2016-05-27 17:31:21 +00:00
..
__longjmp-common.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
__longjmp.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
configure Fix powerpc32 llrint, llrintf bad exceptions (bug 16422). 2015-10-13 00:52:54 +00:00
configure.ac Fix powerpc32 llrint, llrintf bad exceptions (bug 16422). 2015-10-13 00:52:54 +00:00
fix-int-fp-convert-zero.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
fprrest.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
fprsave.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
Makefile
s_ceil.S Fix powerpc32 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:31:21 +00:00
s_ceilf.S Fix powerpc32 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:31:21 +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 powerpc32 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:31:21 +00:00
s_floorf.S Fix powerpc32 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:31:21 +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.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
s_llrintf.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
s_llround.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
s_llroundf.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
s_lrint.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
s_lround.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
s_lroundf.S * include/features.h (__GLIBC_MINOR__): Bump to 8. 2008-04-11 17:33:24 +00:00
s_nearbyint.S Fix powerpc32 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:31:21 +00:00
s_nearbyintf.S Fix powerpc32 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:31:21 +00:00
s_rint.S Fix powerpc32 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:31:21 +00:00
s_rintf.S Fix powerpc32 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:31:21 +00:00
s_round.S Fix powerpc32 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:31:21 +00:00
s_roundf.S Fix powerpc32 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:31:21 +00:00
s_trunc.S Fix powerpc32 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:31:21 +00:00
s_truncf.S Fix powerpc32 ceil, rint etc. on sNaN input (bug 20160). 2016-05-27 17:31:21 +00:00
setjmp-common.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
setjmp.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00