aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-07-22 23:33:22 -0400
committerUlrich Drepper <drepper@gmail.com>2011-07-22 23:33:22 -0400
commit1aae088a8aa2a4e4211bfe6c0e18100d85f106ae (patch)
treea82c3d0c25934a564c29eb5aeec9ce3f9209c658
parent8e2045f55574da097d4fee54aaf1496546e8950c (diff)
downloadglibc-1aae088a8aa2a4e4211bfe6c0e18100d85f106ae.zip
glibc-1aae088a8aa2a4e4211bfe6c0e18100d85f106ae.tar.gz
glibc-1aae088a8aa2a4e4211bfe6c0e18100d85f106ae.tar.bz2
One more change to XSAVE patch
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/x86_64/dl-trampoline.S6
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5d6658a..40c1ea9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2011-07-22 Ulrich Drepper <drepper@gmail.com>
+ * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
+ OSXSAVE.
+ (_dl_x86_64_save_sse): Likewise.
+
* crypt/crypt_util.c (__init_des_r): Optimize memset calls.
* crypt/crypt_util.c (__init_des_r): Add read barrier as well.
diff --git a/sysdeps/x86_64/dl-trampoline.S b/sysdeps/x86_64/dl-trampoline.S
index ad7479f..4aa63ee 100644
--- a/sysdeps/x86_64/dl-trampoline.S
+++ b/sysdeps/x86_64/dl-trampoline.S
@@ -141,7 +141,8 @@ L(have_avx):
movq %r11,%rbx # Restore rbx
xorl %eax, %eax
// AVX and XSAVE supported?
- testl $((1 << 28) | (1 << 27)), %ecx
+ andl $((1 << 28) | (1 << 27)), %ecx
+ cmpl $((1 << 28) | (1 << 27)), %ecx
je 2f
xorl %ecx, %ecx
// Get XFEATURE_ENABLED_MASK
@@ -186,7 +187,8 @@ _dl_x86_64_save_sse:
movq %r11,%rbx # Restore rbx
xorl %eax, %eax
// AVX and XSAVE supported?
- testl $((1 << 28) | (1 << 27)), %ecx
+ andl $((1 << 28) | (1 << 27)), %ecx
+ cmpl $((1 << 28) | (1 << 27)), %ecx
je 2f
xorl %ecx, %ecx
// Get XFEATURE_ENABLED_MASK