x86-64: Fix SSE2 memcmp and SSSE3 memmove for x32
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 22 Apr 2022 17:53:13 +0000 (10:53 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 22 Apr 2022 18:23:15 +0000 (11:23 -0700)
commit8ea20ee5f6145de4bff9481d3e09ac36ba9df8f3
tree0b55037af7f84a79e8849190c50acd0921e1f9f5
parent198abcbb94618730dae1b3f4393efaa49e0ec8c7
x86-64: Fix SSE2 memcmp and SSSE3 memmove for x32

Clear the upper 32 bits in RDX (memory size) for x32 to fix

FAIL: string/tst-size_t-memcmp
FAIL: string/tst-size_t-memcmp-2
FAIL: string/tst-size_t-memcpy
FAIL: wcsmbs/tst-size_t-wmemcmp

on x32 introduced by

8804157ad9 x86: Optimize memcmp SSE2 in memcmp.S
26b2478322 x86: Reduce code size of mem{move|pcpy|cpy}-ssse3

Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
sysdeps/x86_64/memcmp.S
sysdeps/x86_64/multiarch/memmove-ssse3.S