aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/powerpc64
diff options
context:
space:
mode:
authorOndrej Bilka <neleai@seznam.cz>2015-07-28 17:34:04 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.com>2015-08-11 10:03:10 -0300
commit5011051da35a91577d262040791cbe5a868cffbd (patch)
tree21f74a19d00270b3da59f00371b192fc3d442797 /sysdeps/powerpc/powerpc64
parent6f714aa4ad5af2745ae2d185821d20ce8fabc2c5 (diff)
downloadglibc-5011051da35a91577d262040791cbe5a868cffbd.tar
glibc-5011051da35a91577d262040791cbe5a868cffbd.tar.gz
glibc-5011051da35a91577d262040791cbe5a868cffbd.tar.bz2
glibc-5011051da35a91577d262040791cbe5a868cffbd.zip
powerpc: Fix stpcpy performance for power8
This patch fixes the missing enablement for stpcpy on POWER8. * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
Diffstat (limited to 'sysdeps/powerpc/powerpc64')
-rw-r--r--sysdeps/powerpc/powerpc64/multiarch/stpcpy.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/stpcpy.c b/sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
index c809f99982..8ff0dbe194 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
+++ b/sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
@@ -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)