summaryrefslogtreecommitdiff
path: root/libc/sysdeps/x86_64/dl-trampoline.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/x86_64/dl-trampoline.S')
-rw-r--r--libc/sysdeps/x86_64/dl-trampoline.S5
1 files changed, 1 insertions, 4 deletions
diff --git a/libc/sysdeps/x86_64/dl-trampoline.S b/libc/sysdeps/x86_64/dl-trampoline.S
index 258c60945..6523c9294 100644
--- a/libc/sysdeps/x86_64/dl-trampoline.S
+++ b/libc/sysdeps/x86_64/dl-trampoline.S
@@ -149,10 +149,7 @@ L(have_avx):
// Get XFEATURE_ENABLED_MASK
xgetbv
andl $0x6, %eax
- cmpl $0x6, %eax
- // Nonzero if SSE and AVX state saving is enabled.
- sete %al
-2: leal -1(%eax,%eax), %eax
+2: subl $0x5, %eax
movl %eax, L(have_avx)(%rip)
cmpl $0, %eax