]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Test wcscmp RTM in the wcsncmp overflow case [BZ #28896]
authorNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 18 Feb 2022 20:19:15 +0000 (14:19 -0600)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 18 Feb 2022 22:50:20 +0000 (14:50 -0800)
commitd001088e221ab3f89d78ce3e914e97206a27c94b
tree3953fd5b58ddc0d6501d6837b71fea53570081b5
parentfd412fff6d2bd322ec24ebd13fab196efc6c5506
x86: Test wcscmp RTM in the wcsncmp overflow case [BZ #28896]

In the overflow fallback strncmp-avx2-rtm and wcsncmp-avx2-rtm would
call strcmp-avx2 and wcscmp-avx2 respectively. This would have
not checks around vzeroupper and would trigger spurious
aborts. This commit fixes that.

test-strcmp, test-strncmp, test-wcscmp, and test-wcsncmp all pass on
AVX2 machines with and without RTM.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit 7835d611af0854e69a0c71e3806f8fe379282d6f)
sysdeps/x86/Makefile
sysdeps/x86/tst-strncmp-rtm.c
sysdeps/x86/tst-wcsncmp-rtm.c [new file with mode: 0644]