powerpc: Fix strncat ifunc selection

Correct hwcap usage in strncat introduced by commit
249dcdb71b.
Tested on power7 and power8 systems
This commit is contained in:
Rajalakshmi Srinivasaraghavan 2017-05-04 12:35:56 +05:30
parent 1432d38ea0
commit 808befbf9e
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2017-05-03 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
* sysdeps/powerpc/powerpc64/multiarch/strncat.c: Correct hwcap
variable name.
2017-05-03 H.J. Lu <hongjiu.lu@intel.com>
[BZ #21391]

View file

@ -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