mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-10 11:20:10 +00:00
x86: ZERO_UPPER_VEC_REGISTERS_RETURN_XTEST expect no transactions
Give fall-through path to `vzeroupper` and taken-path to `vzeroall`.
Generally even on machines with RTM the expectation is the
string-library functions will not be called in transactions.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit c28db9cb29
)
This commit is contained in:
parent
b4744d4414
commit
e74385736c
@ -99,11 +99,11 @@ lose: \
|
||||
to avoid RTM abort triggered by VZEROUPPER inside transactionally. */
|
||||
#define ZERO_UPPER_VEC_REGISTERS_RETURN_XTEST \
|
||||
xtest; \
|
||||
jz 1f; \
|
||||
vzeroall; \
|
||||
jnz 1f; \
|
||||
vzeroupper; \
|
||||
ret; \
|
||||
1: \
|
||||
vzeroupper; \
|
||||
vzeroall; \
|
||||
ret
|
||||
|
||||
/* Can be used to replace vzeroupper that is not directly before a
|
||||
|
Loading…
Reference in New Issue
Block a user