mirror of git://sourceware.org/git/glibc.git
Simplify AVX check
This commit is contained in:
parent
9e5c9dcd57
commit
08a300c956
|
@ -1,3 +1,8 @@
|
||||||
|
2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
|
||||||
|
AVX check.
|
||||||
|
|
||||||
2011-09-07 Ulrich Drepper <drepper@gmail.com>
|
2011-09-07 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/x86_64/init-first.c
|
* sysdeps/unix/sysv/linux/x86_64/init-first.c
|
||||||
|
|
|
@ -149,10 +149,7 @@ L(have_avx):
|
||||||
// Get XFEATURE_ENABLED_MASK
|
// Get XFEATURE_ENABLED_MASK
|
||||||
xgetbv
|
xgetbv
|
||||||
andl $0x6, %eax
|
andl $0x6, %eax
|
||||||
cmpl $0x6, %eax
|
2: subl $0x5, %eax
|
||||||
// Nonzero if SSE and AVX state saving is enabled.
|
|
||||||
sete %al
|
|
||||||
2: leal -1(%eax,%eax), %eax
|
|
||||||
movl %eax, L(have_avx)(%rip)
|
movl %eax, L(have_avx)(%rip)
|
||||||
cmpl $0, %eax
|
cmpl $0, %eax
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue