[llvm] r181313 - Re-enable AVX detection on x64 platforms.
Michael Kuperstein
michael.m.kuperstein at intel.com
Tue May 7 07:05:33 PDT 2013
Author: mkuper
Date: Tue May 7 09:05:33 2013
New Revision: 181313
URL: http://llvm.org/viewvc/llvm-project?rev=181313&view=rev
Log:
Re-enable AVX detection on x64 platforms.
Modified:
llvm/trunk/lib/Target/X86/X86Subtarget.cpp
Modified: llvm/trunk/lib/Target/X86/X86Subtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.cpp?rev=181313&r1=181312&r2=181313&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86Subtarget.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86Subtarget.cpp Tue May 7 09:05:33 2013
@@ -171,7 +171,8 @@ bool X86Subtarget::IsLegalToCallImmediat
}
static bool OSHasAVXSupport() {
-#if defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)
+#if defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)\
+ || defined(__x86_64__) || defined(_M_AMD64) || defined (_M_X64)
#if defined(__GNUC__)
// Check xgetbv; this uses a .byte sequence instead of the instruction
// directly because older assemblers do not include support for xgetbv and
More information about the llvm-commits
mailing list