aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/fpu/s_fmaf.S
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-03-20 04:14:28 +0000
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-04-17 15:14:53 -0300
commit3a16dd780eeba60266d75e4a562536cc0785bc4e (patch)
tree57c7950840936d10e886dec25e25a329f0b4d183 /sysdeps/powerpc/fpu/s_fmaf.S
parent1dac8bd6f23d574c841982a17e984111dc8366d7 (diff)
downloadglibc-3a16dd780eeba60266d75e4a562536cc0785bc4e.tar
glibc-3a16dd780eeba60266d75e4a562536cc0785bc4e.tar.gz
glibc-3a16dd780eeba60266d75e4a562536cc0785bc4e.tar.bz2
glibc-3a16dd780eeba60266d75e4a562536cc0785bc4e.zip
powerpc: fma using builtins
This patch just refactor the assembly implementation to use compiler builtins instead. 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_fma.S: Remove file. * sysdeps/powerpc/fpu/s_fmaf.S: Likewise. * sysdeps/powerpc/fpu/s_fma.c: New file. * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
Diffstat (limited to 'sysdeps/powerpc/fpu/s_fmaf.S')
-rw-r--r--sysdeps/powerpc/fpu/s_fmaf.S28
1 files changed, 0 insertions, 28 deletions
diff --git a/sysdeps/powerpc/fpu/s_fmaf.S b/sysdeps/powerpc/fpu/s_fmaf.S
deleted file mode 100644
index 9579e9492e..0000000000
--- a/sysdeps/powerpc/fpu/s_fmaf.S
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Compute x * y + z as ternary operation. PowerPC version.
- Copyright (C) 2010-2019 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
- <http://www.gnu.org/licenses/>. */
-
-#include <sysdep.h>
-#include <libm-alias-float.h>
-
-ENTRY_TOCLESS(__fmaf)
-/* float [f1] fmaf (float [f1] x, float [f2] y, float [f3] z); */
- fmadds fp1,fp1,fp2,fp3
- blr
-END(__fmaf)
-
-libm_alias_float (__fma, fma)