powerpc: Fix stpcpy performance for power8

This patch fixes the missing enablement for stpcpy on POWER8.

	* sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
This commit is contained in:
Ondrej Bilka 2015-07-28 17:34:04 -03:00 committed by Adhemerval Zanella
parent 6f714aa4ad
commit 5011051da3
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2015-08-10 Ondrej Bilka <neleai@seznam.cz>
* sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
2015-08-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
* sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to

View File

@ -24,10 +24,13 @@
extern __typeof (__stpcpy) __stpcpy_ppc attribute_hidden;
extern __typeof (__stpcpy) __stpcpy_power7 attribute_hidden;
extern __typeof (__stpcpy) __stpcpy_power8 attribute_hidden;
libc_ifunc (__stpcpy,
(hwcap & PPC_FEATURE_HAS_VSX)
? __stpcpy_power7
(hwcap2 & PPC_FEATURE2_ARCH_2_07)
? __stpcpy_power8 :
(hwcap & PPC_FEATURE_HAS_VSX)
? __stpcpy_power7
: __stpcpy_ppc);
weak_alias (__stpcpy, stpcpy)