mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-03 22:53:37 +08:00
x86-64: Require BMI2 for __strlen_evex and __strnlen_evex
Since __strlen_evex and __strnlen_evex added by commit1fd8c163a8
Author: H.J. Lu <hjl.tools@gmail.com> Date: Fri Mar 5 06:24:52 2021 -0800 x86-64: Add ifunc-avx2.h functions with 256-bit EVEX use sarx: c4 e2 6a f7 c0 sarx %edx,%eax,%eax require BMI2 for __strlen_evex and __strnlen_evex in ifunc-impl-list.c. ifunc-avx2.h already requires BMI2 for EVEX implementation. (cherry picked from commit55bf411b45
)
This commit is contained in:
parent
c3535cb6cd
commit
3fc179e2b2
@ -293,7 +293,8 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
|
||||
__strlen_avx2_rtm)
|
||||
IFUNC_IMPL_ADD (array, i, strlen,
|
||||
(HAS_ARCH_FEATURE (AVX512VL_Usable)
|
||||
&& HAS_ARCH_FEATURE (AVX512BW_Usable)),
|
||||
&& HAS_ARCH_FEATURE (AVX512BW_Usable)
|
||||
&& HAS_CPU_FEATURE (BMI2)),
|
||||
__strlen_evex)
|
||||
IFUNC_IMPL_ADD (array, i, strlen, 1, __strlen_sse2))
|
||||
|
||||
@ -308,7 +309,8 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
|
||||
__strnlen_avx2_rtm)
|
||||
IFUNC_IMPL_ADD (array, i, strnlen,
|
||||
(HAS_ARCH_FEATURE (AVX512VL_Usable)
|
||||
&& HAS_ARCH_FEATURE (AVX512BW_Usable)),
|
||||
&& HAS_ARCH_FEATURE (AVX512BW_Usable)
|
||||
&& HAS_CPU_FEATURE (BMI2)),
|
||||
__strnlen_evex)
|
||||
IFUNC_IMPL_ADD (array, i, strnlen, 1, __strnlen_sse2))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user