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.
This commit is contained in:
Noah Goldstein 2022-06-24 09:42:15 -07:00
parent 227afaa672
commit afc6e4328f
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"