x86: Put wcs{n}len-sse4.1 in the sse4.1 text section

Previously was missing but the two implementations shouldn't get in
the sse2 (generic) text section.

(cherry picked from commit afc6e4328f)
This commit is contained in:
Noah Goldstein 2022-06-24 09:42:15 -07:00 committed by Sunil K Pandey
parent d201c59177
commit aadd0a1c7c
3 changed files with 7 additions and 1 deletions

View File

@ -28,6 +28,10 @@
# define SHIFT_RETURN
#endif
#ifndef SECTION
# define SECTION(p) p
#endif
/* Long lived register in strlen(s), strnlen(s, n) are:
%xmm3 - zero
@ -37,7 +41,7 @@
*/
.text
.section SECTION(.text),"ax",@progbits
ENTRY(strlen)
/* Test 64 bytes from %rax for zero. Save result as bitmask in %rdx. */

View File

@ -1,4 +1,5 @@
#define AS_WCSLEN
#define strlen __wcslen_sse4_1
#define SECTION(p) p##.sse4.1
#include "strlen-vec.S"

View File

@ -1,5 +1,6 @@
#define AS_WCSLEN
#define AS_STRNLEN
#define strlen __wcsnlen_sse4_1
#define SECTION(p) p##.sse4.1
#include "strlen-vec.S"