sparc: refactor sparc32 fabs{f} selector to C
commite240cf0e0e47436c1beb0e95f78c03f3774a4533
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 13 Oct 2017 18:49:25 +0000 (13 15:49 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 1 Dec 2017 13:48:58 +0000 (1 11:48 -0200)
tree2c7074fb7313835de4a299d335916b7ab271bd7c
parent5b4e5e78690c4938de312a8b176f4b14eb7bea4a
sparc: refactor sparc32 fabs{f} selector to C

This patch refactors the sparc32 ifunc selector to a C implementation.
Also, the generic symbol is moved to its own implementation file
s_fabs{f}-generic.S).

Checked on sparc64-linux-gnu and sparcv9-linux-gnu.

* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
(libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.

Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
ChangeLog
sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S [new file with mode: 0644]
sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S [deleted file]
sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c [new file with mode: 0644]
sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S [new file with mode: 0644]
sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S [deleted file]
sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c [new file with mode: 0644]