glibc/sysdeps/powerpc/powerpc32/fpu
Joseph Myers 05f3ed0a79 Stop powerpc copysignl raising "invalid" for sNaN argument (bug 20718).
The powerpc (hard-float) implementations of copysignl, both 32-bit and
64-bit, raise spurious "invalid" exceptions when the first argument is
a signaling NaN.  copysign functions should never raise exceptions
even for signaling NaNs.

The problem is the use of an fcmpu instruction to test the sign of the
high part of the long double argument.  This patch fixes the functions
to use fsel instead (as used for fabsl following my fixes for a
similar bug there), or to examine the integer representation for older
32-bit processors without fsel.

Tested for powerpc64 and powerpc32 (configurations with and without
fsel used).

	[BZ #20718]
	* sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
	not use floating-point comparisons to test sign.
	* sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
	Likewise.
2016-10-19 22:58:34 +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 Stop powerpc copysignl raising "invalid" for sNaN argument (bug 20718). 2016-10-19 22:58:34 +00:00
s_fabs.S 2006-01-27 Dwayne Grant McConnell <decimal@us.ibm.com> 2006-01-28 00:15:15 +00:00
s_fabsl.S Avoid "invalid" exceptions from powerpc fabsl (sNaN) (bug 20157). 2016-05-27 15:29:31 +00:00
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 2006-01-27 Dwayne Grant McConnell <decimal@us.ibm.com> 2006-01-28 00:15:15 +00:00
s_fmin.S 2006-01-27 Dwayne Grant McConnell <decimal@us.ibm.com> 2006-01-28 00:15:15 +00:00
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