[llvm-commits] [PATCH] Correct AVX detection in X86Subtarget::AutoDetectSubtargetFeatures()

Alex Rønne Petersen alex at lycus.org
Sat Aug 25 01:33:09 PDT 2012

Hi LLVMers,

The AVX detection code in X86Subtarget::AutoDetectSubtargetFeatures() only
checked for the CPUID.{EAX = 1}.ECX.AVX bit previously. This is not enough;
the XSAVE and OSXSAVE bits also need to be checked to be sure that the OS
is aware of XMM/YMM registers and saves them during context switches. This
patch fixes that.

The patch was created with git diff - I was told svn should be able to work
with that.

This is my first patch submission, so if I did something wrong, please bear
with me. :)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120825/cbac457b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avx.patch
Type: application/octet-stream
Size: 848 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120825/cbac457b/attachment.obj>

More information about the llvm-commits mailing list