glibc/sysdeps/powerpc/powerpc32/fpu
Adhemerval Zanella e41d66e41a powerpc: copysign cleanup
GCC always expand copysign{f} for all possible cpus, so calling the libm
is only done if user explicitly states to disable the builtin (which is
done usually not for performance reason).  So to provide ifunc variant
for copysign is just unrequired complexity, since libm will be called
on non-performance critical code.

This patch removes both powerpc32 and powerpc64 ifunc variants and
consolidates the powerpc implementation on
sysdeps/powerpc/fpu/s_copysign{f}.c using compiler builtins.

Checked on powerpc-linux-gnu (built without --with-cpu, with
--with-cpu=power4 and with --with-cpu=power5+ and --disable-multi-arch),
powerpc64-linux-gnu (built without --with-cp and with --with-cpu=power5+
and --disable-multi-arch).

	* sysdeps/powerpc/fpu/s_copysign.c: New file.
	* sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
	* sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
	* sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
	(sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
	s_copysign-ppc32.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
	Remove file.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
	Likewise.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
	Likewise.
	* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
	Likewise.
	* sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
	* sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
	Remove s_copysign-power6 s_copysign-ppc64.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
	Remove file.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
	Likewise.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
	* sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
	* sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
	* sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
	* sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
	* sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.

Reviewed-by: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2019-06-12 11:46:26 -03:00
..
__longjmp-common.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
__longjmp.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +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. 2019-01-01 00:11:28 +00:00
fprrest.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
fprsave.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
Makefile Update. 2002-09-05 10:28:51 +00:00
s_copysignl.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_fabsl.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_isnan.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_llrint.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_llrintf.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_llround.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_llroundf.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_lrint.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_lround.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
s_lroundf.S * include/features.h (__GLIBC_MINOR__): Bump to 8. 2008-04-11 17:33:24 +00:00
setjmp-common.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
setjmp.S Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00