This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13007] have_avx in sysdeps/x68_64/dl-trampoline.S does not check hard enough
- From: "luto at mit dot edu" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sat, 23 Jul 2011 02:19:33 +0000
- Subject: [Bug libc/13007] have_avx in sysdeps/x68_64/dl-trampoline.S does not check hard enough
- Auto-submitted: auto-generated
- References: <bug-13007-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13007
--- Comment #6 from Andy Lutomirski <luto at mit dot edu> 2011-07-23 02:19:18 UTC ---
Should it be a new bug, then? From my admittedly imperfect recollection of x86
assembly, this:
+ testl $((1 << 28) | (1 << 27)), %ecx
+ je 2f
is checking whether one of the bits is set, not whether both are set. I think
you'll get SIGILL when you do xgetbv if OSXSAVE isn't set. (And you'll get a
different failure if YMM is enabled but AVX isn't present, in the unlikely
event that such a CPU exists.)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.