mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
7ebba91361
Since VZEROUPPER triggers RTM abort while VZEROALL won't, select AVX optimized string/memory functions with xtest jz 1f vzeroall ret 1: vzeroupper ret at function exit on processors with usable RTM, but without 256-bit EVEX instructions to avoid VZEROUPPER inside a transactionally executing RTM region.
18 lines
393 B
ArmAsm
18 lines
393 B
ArmAsm
#if IS_IN (libc)
|
|
# define VEC_SIZE 32
|
|
# define VEC(i) ymm##i
|
|
# define VMOVNT vmovntdq
|
|
# define VMOVU vmovdqu
|
|
# define VMOVA vmovdqa
|
|
|
|
# define ZERO_UPPER_VEC_REGISTERS_RETURN \
|
|
ZERO_UPPER_VEC_REGISTERS_RETURN_XTEST
|
|
|
|
# define VZEROUPPER_RETURN jmp L(return)
|
|
|
|
# define SECTION(p) p##.avx.rtm
|
|
# define MEMMOVE_SYMBOL(p,s) p##_avx_##s##_rtm
|
|
|
|
# include "memmove-vec-unaligned-erms.S"
|
|
#endif
|