diff options
author | Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> | 2017-05-04 12:35:56 +0530 |
---|---|---|
committer | Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> | 2017-05-04 12:35:56 +0530 |
commit | 808befbf9edb079c507de4a2f3427c1cb715fa4b (patch) | |
tree | a21f856f41ae34088088b27d79ee61bff664fe5b /sysdeps | |
parent | 1432d38ea04ab5e96f21a382101856db5b49ad8a (diff) | |
download | glibc-808befbf9edb079c507de4a2f3427c1cb715fa4b.tar.gz glibc-808befbf9edb079c507de4a2f3427c1cb715fa4b.tar.xz glibc-808befbf9edb079c507de4a2f3427c1cb715fa4b.zip |
powerpc: Fix strncat ifunc selection
Correct hwcap usage in strncat introduced by commit 249dcdb71b79e4c488a46c9027e0014c0bc27044. Tested on power7 and power8 systems
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/strncat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/strncat.c b/sysdeps/powerpc/powerpc64/multiarch/strncat.c index ba3fe5cac4..72f283354e 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/strncat.c +++ b/sysdeps/powerpc/powerpc64/multiarch/strncat.c @@ -26,7 +26,7 @@ extern __typeof (strncat) __strncat_power7 attribute_hidden; extern __typeof (strncat) __strncat_power8 attribute_hidden; libc_ifunc (strncat, - (hwcap & PPC_FEATURE2_ARCH_2_07) + (hwcap2 & PPC_FEATURE2_ARCH_2_07) ? __strncat_power8 : (hwcap & PPC_FEATURE_HAS_VSX) ? __strncat_power7 |