]> 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)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Thu, 8 Jul 2021 22:55:40 +0000 (18:55 -0400)
commita6e7c3745d73ff876b4ba6991fb00768a938aef5
treef0525e9d7fc3a497c20d8abe6e2751dfc8708463
parent115d242456de158e698ffb0f9a5fee3118e9e825
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.
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]