diff options
author | Anton Blanchard <anton@ozlabs.org> | 2021-07-27 15:47:49 +1000 |
---|---|---|
committer | Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> | 2021-08-06 16:09:52 -0300 |
commit | e4ca6de1bc5e4ba3f94cf0c501a293c5bc827b10 (patch) | |
tree | 8ddc588b8440cc508a533f50864032596bdeee09 /sysdeps/powerpc/powerpc64/multiarch/strncmp.c | |
parent | c87fcacc50505d550f1bb038382bcc7ea73a5926 (diff) | |
download | glibc-e4ca6de1bc5e4ba3f94cf0c501a293c5bc827b10.zip glibc-e4ca6de1bc5e4ba3f94cf0c501a293c5bc827b10.tar.gz glibc-e4ca6de1bc5e4ba3f94cf0c501a293c5bc827b10.tar.bz2 |
powerpc64: Replace some PPC_FEATURE_HAS_VSX with PPC_FEATURE_ARCH_2_06
We use PPC_FEATURE_HAS_VSX to select a number of POWER7 optimised
functions. These functions don't use any VSX instructions, so
PPC_FEATURE_ARCH_2_06 seems like a better fit.
Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Diffstat (limited to 'sysdeps/powerpc/powerpc64/multiarch/strncmp.c')
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/strncmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/strncmp.c b/sysdeps/powerpc/powerpc64/multiarch/strncmp.c index eef524d..1f689e5 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/strncmp.c +++ b/sysdeps/powerpc/powerpc64/multiarch/strncmp.c @@ -43,7 +43,7 @@ libc_ifunc_redirected (__redirect_strncmp, strncmp, # endif (hwcap2 & PPC_FEATURE2_ARCH_2_07) ? __strncmp_power8 - : (hwcap & PPC_FEATURE_HAS_VSX) + : (hwcap & PPC_FEATURE_ARCH_2_06) ? __strncmp_power7 : (hwcap & PPC_FEATURE_POWER4) ? __strncmp_power4 |