diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-03-24 18:56:13 -0500 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-03-25 13:16:50 -0500 |
commit | 84e7c46df4086873eae28a1fb87d2cf5388b1e16 (patch) | |
tree | 4a62843c642a15bf09a4da8030d9ca43c21ecea7 /sysdeps/x86_64/multiarch/ifunc-impl-list.c | |
parent | bbf81222343fed5cd704001a2ae0d86c71544151 (diff) | |
download | glibc-84e7c46df4086873eae28a1fb87d2cf5388b1e16.tar.gz glibc-84e7c46df4086873eae28a1fb87d2cf5388b1e16.tar.xz glibc-84e7c46df4086873eae28a1fb87d2cf5388b1e16.zip |
x86: Add EVEX optimized str{n}casecmp
geometric_mean(N=40) of all benchmarks EVEX / SSE42: .621 All string/memory tests pass. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'sysdeps/x86_64/multiarch/ifunc-impl-list.c')
-rw-r--r-- | sysdeps/x86_64/multiarch/ifunc-impl-list.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sysdeps/x86_64/multiarch/ifunc-impl-list.c b/sysdeps/x86_64/multiarch/ifunc-impl-list.c index 3c556d07ac..f1a4d3dac2 100644 --- a/sysdeps/x86_64/multiarch/ifunc-impl-list.c +++ b/sysdeps/x86_64/multiarch/ifunc-impl-list.c @@ -437,6 +437,10 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array, /* Support sysdeps/x86_64/multiarch/strcasecmp_l.c. */ IFUNC_IMPL (i, name, strcasecmp, IFUNC_IMPL_ADD (array, i, strcasecmp, + (CPU_FEATURE_USABLE (AVX512VL) + && CPU_FEATURE_USABLE (AVX512BW)), + __strcasecmp_evex) + IFUNC_IMPL_ADD (array, i, strcasecmp, CPU_FEATURE_USABLE (AVX2), __strcasecmp_avx2) IFUNC_IMPL_ADD (array, i, strcasecmp, @@ -457,6 +461,10 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array, /* Support sysdeps/x86_64/multiarch/strcasecmp_l.c. */ IFUNC_IMPL (i, name, strcasecmp_l, IFUNC_IMPL_ADD (array, i, strcasecmp, + (CPU_FEATURE_USABLE (AVX512VL) + && CPU_FEATURE_USABLE (AVX512BW)), + __strcasecmp_l_evex) + IFUNC_IMPL_ADD (array, i, strcasecmp, CPU_FEATURE_USABLE (AVX2), __strcasecmp_l_avx2) IFUNC_IMPL_ADD (array, i, strcasecmp, @@ -591,6 +599,10 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array, /* Support sysdeps/x86_64/multiarch/strncase_l.c. */ IFUNC_IMPL (i, name, strncasecmp, IFUNC_IMPL_ADD (array, i, strncasecmp, + (CPU_FEATURE_USABLE (AVX512VL) + && CPU_FEATURE_USABLE (AVX512BW)), + __strncasecmp_evex) + IFUNC_IMPL_ADD (array, i, strncasecmp, CPU_FEATURE_USABLE (AVX2), __strncasecmp_avx2) IFUNC_IMPL_ADD (array, i, strncasecmp, @@ -612,6 +624,10 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array, /* Support sysdeps/x86_64/multiarch/strncase_l.c. */ IFUNC_IMPL (i, name, strncasecmp_l, IFUNC_IMPL_ADD (array, i, strncasecmp, + (CPU_FEATURE_USABLE (AVX512VL) + && CPU_FEATURE_USABLE (AVX512BW)), + __strncasecmp_l_evex) + IFUNC_IMPL_ADD (array, i, strncasecmp, CPU_FEATURE_USABLE (AVX2), __strncasecmp_l_avx2) IFUNC_IMPL_ADD (array, i, strncasecmp, |