190885
From 88405b75deedca35e9fbccc8a39368fcf0e58783 Mon Sep 17 00:00:00 2001
190885
From: Noah Goldstein <goldstein.w.n@gmail.com>
190885
Date: Thu, 8 Jul 2021 16:13:19 -0400
190885
Subject: [PATCH] x86: Remove wcsnlen-sse4_1 from wcslen ifunc-impl-list [BZ
190885
 #28064]
190885
190885
The following commit
190885
190885
commit 6f573a27b6c8b4236445810a44660612323f5a73
190885
Author: Noah Goldstein <goldstein.w.n@gmail.com>
190885
Date:   Wed Jun 23 01:19:34 2021 -0400
190885
190885
    x86-64: Add wcslen optimize for sse4.1
190885
190885
Added wcsnlen-sse4.1 to the wcslen ifunc implementation list and did
190885
not add wcslen-sse4.1 to wcslen ifunc implementation list. This commit
190885
fixes that by removing wcsnlen-sse4.1 from the wcslen ifunc
190885
implementation list and adding wcslen-sse4.1 to the ifunc
190885
implementation list.
190885
190885
Testing:
190885
test-wcslen.c, test-rsi-wcslen.c, and test-rsi-strlen.c are passing as
190885
well as all other tests in wcsmbs and string.
190885
190885
Signed-off-by: Noah Goldstein <goldstein.w.n@gmail.com>
190885
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
190885
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
190885
(cherry picked from commit 0679442defedf7e52a94264975880ab8674736b2)
190885
---
190885
 sysdeps/x86_64/multiarch/ifunc-impl-list.c | 4 ++--
190885
 1 file changed, 2 insertions(+), 2 deletions(-)
190885
190885
diff --git a/sysdeps/x86_64/multiarch/ifunc-impl-list.c b/sysdeps/x86_64/multiarch/ifunc-impl-list.c
190885
index 580913ca..695cdba6 100644
190885
--- a/sysdeps/x86_64/multiarch/ifunc-impl-list.c
190885
+++ b/sysdeps/x86_64/multiarch/ifunc-impl-list.c
190885
@@ -657,9 +657,9 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
190885
 			       && CPU_FEATURE_USABLE (AVX512BW)
190885
 			       && CPU_FEATURE_USABLE (BMI2)),
190885
 			      __wcslen_evex)
190885
-	      IFUNC_IMPL_ADD (array, i, wcsnlen,
190885
+	      IFUNC_IMPL_ADD (array, i, wcslen,
190885
 			      CPU_FEATURE_USABLE (SSE4_1),
190885
-			      __wcsnlen_sse4_1)
190885
+			      __wcslen_sse4_1)
190885
 	      IFUNC_IMPL_ADD (array, i, wcslen, 1, __wcslen_sse2))
190885
 
190885
   /* Support sysdeps/x86_64/multiarch/wcsnlen.c.  */
190885
-- 
190885
GitLab
190885