]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86-64: Test strlen and wcslen with 0 in the RSI register [BZ #28064]
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 8 Jul 2021 20:13:17 +0000 (16:13 -0400)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 1 Feb 2022 20:51:16 +0000 (12:51 -0800)
commit28689d6255ad19641f53fd0a635bebf12e66d8f4
tree2e9676a10ae267e30a3299432925886abcfab09d
parent352cb39fa0aed406dcdadea8debf5d686d78a29a
x86-64: Test strlen and wcslen with 0 in the RSI register [BZ #28064]

commit 6f573a27b6c8b4236445810a44660612323f5a73
Author: Noah Goldstein <goldstein.w.n@gmail.com>
Date:   Wed Jun 23 01:19:34 2021 -0400

    x86-64: Add wcslen optimize for sse4.1

added wcsnlen-sse4.1 to the wcslen ifunc implementation list.  Since the
random value in the the RSI register is larger than the wide-character
string length in the existing wcslen test, it didn't trigger the wcslen
test failure.  Add a test to force 0 into the RSI register before calling
wcslen.

(cherry picked from commit a6e7c3745d73ff876b4ba6991fb00768a938aef5)
sysdeps/x86_64/Makefile
sysdeps/x86_64/tst-rsi-strlen.c [new file with mode: 0644]
sysdeps/x86_64/tst-rsi-wcslen.c [new file with mode: 0644]