mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-11 22:00:08 +00:00
x86: Remove SSSE3 instruction for broadcast in memset.S (SSE2 Only)
commitb62ace2740
Author: Noah Goldstein <goldstein.w.n@gmail.com> Date: Sun Feb 6 00:54:18 2022 -0600 x86: Improve vec generation in memset-vec-unaligned-erms.S Revert usage of 'pshufb' in broadcast logic as it is an SSSE3 instruction and memset.S is restricted to only SSE2 instructions. (cherry picked from commit1b0c60f95b
)
This commit is contained in:
parent
ea19c490a3
commit
190ea5f7e4
@ -30,9 +30,10 @@
|
||||
|
||||
# define MEMSET_SET_VEC0_AND_SET_RETURN(d, r) \
|
||||
movd d, %xmm0; \
|
||||
pxor %xmm1, %xmm1; \
|
||||
pshufb %xmm1, %xmm0; \
|
||||
movq r, %rax
|
||||
movq r, %rax; \
|
||||
punpcklbw %xmm0, %xmm0; \
|
||||
punpcklwd %xmm0, %xmm0; \
|
||||
pshufd $0, %xmm0, %xmm0
|
||||
|
||||
# define WMEMSET_SET_VEC0_AND_SET_RETURN(d, r) \
|
||||
movd d, %xmm0; \
|
||||
|
Loading…
Reference in New Issue
Block a user