From 4f2146c4f41c409d92441d6365dc3aceaf70c7fe Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 5 Apr 2022 11:03:42 -0300 Subject: sparc64: Remove fcopysign{f} implementation The builtin from generic code generates similar compliant sequence. Checked on sparc64-linux-gnu. --- sysdeps/sparc/sparc32/fpu/s_copysign.S | 35 ---------------------- sysdeps/sparc/sparc32/fpu/s_copysignf.S | 31 ------------------- .../sparcv9/fpu/multiarch/s_copysign-generic.S | 8 ----- .../sparcv9/fpu/multiarch/s_copysign-generic.c | 5 ++++ .../sparcv9/fpu/multiarch/s_copysignf-generic.S | 5 ---- .../sparcv9/fpu/multiarch/s_copysignf-generic.c | 5 ++++ 6 files changed, 10 insertions(+), 79 deletions(-) delete mode 100644 sysdeps/sparc/sparc32/fpu/s_copysign.S delete mode 100644 sysdeps/sparc/sparc32/fpu/s_copysignf.S delete mode 100644 sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S create mode 100644 sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.c delete mode 100644 sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S create mode 100644 sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.c (limited to 'sysdeps/sparc/sparc32') diff --git a/sysdeps/sparc/sparc32/fpu/s_copysign.S b/sysdeps/sparc/sparc32/fpu/s_copysign.S deleted file mode 100644 index 54191b5..0000000 --- a/sysdeps/sparc/sparc32/fpu/s_copysign.S +++ /dev/null @@ -1,35 +0,0 @@ -/* copysign function, sparc32 version. - Copyright (C) 2012-2022 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include -#include -#include - -ENTRY (__copysign) - sethi %hi(0x80000000), %g1 - and %o2, %g1, %o4 - andn %o0, %g1, %o0 - or %o0, %o4, %o0 - std %o0, [%sp + 72] - retl - ldd [%sp + 72], %f0 -END (__copysign) -libm_alias_double (__copysign, copysign) -#if LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) -compat_symbol (libc, __copysign, copysignl, GLIBC_2_0); -#endif diff --git a/sysdeps/sparc/sparc32/fpu/s_copysignf.S b/sysdeps/sparc/sparc32/fpu/s_copysignf.S deleted file mode 100644 index ce1acfd..0000000 --- a/sysdeps/sparc/sparc32/fpu/s_copysignf.S +++ /dev/null @@ -1,31 +0,0 @@ -/* float copysign function, sparc32 version. - Copyright (C) 2012-2022 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include -#include - -ENTRY (__copysignf) - sethi %hi(0x80000000), %g1 - and %o1, %g1, %o4 - andn %o0, %g1, %o0 - or %o0, %o4, %o0 - st %o0, [%sp + 68] - retl - ld [%sp + 68], %f0 -END (__copysignf) -libm_alias_float (__copysign, copysign) diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S deleted file mode 100644 index 9aa3486..0000000 --- a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S +++ /dev/null @@ -1,8 +0,0 @@ -#include -#include -#define __copysign __copysign_generic -#undef libm_alias_double -#define libm_alias_double(a, b) -#undef compat_symbol -#define compat_symbol(a, b, c, d) -#include diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.c b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.c new file mode 100644 index 0000000..3f8cb8d --- /dev/null +++ b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.c @@ -0,0 +1,5 @@ +#include +#define __copysign __copysign_generic +#undef libm_alias_double +#define libm_alias_double(a, b) +#include diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S deleted file mode 100644 index 6850275..0000000 --- a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S +++ /dev/null @@ -1,5 +0,0 @@ -#include -#define __copysignf __copysignf_generic -#undef libm_alias_float -#define libm_alias_float(a, b) -#include diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.c b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.c new file mode 100644 index 0000000..117dbaf --- /dev/null +++ b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.c @@ -0,0 +1,5 @@ +#include +#define __copysignf __copysignf_generic +#undef libm_alias_float +#define libm_alias_float(a, b) +#include -- cgit v1.1