mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-08 10:20:15 +00:00
38e0d24794
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.
Co-authored-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit c627209832
)
5 lines
118 B
ArmAsm
5 lines
118 B
ArmAsm
#define STRCMP __strncmp_avx2
|
|
#define USE_AS_STRNCMP 1
|
|
#define OVERFLOW_STRCMP __strcmp_avx2
|
|
#include "strcmp-avx2.S"
|