Remove some errant space charcters in mnemonic strings.
[oota-llvm.git] / lib / Target / X86 / X86Subtarget.cpp
index 90e6b700ef5ffd84cb48f1d820fb9734cf0f81e6..74da2a929ce483eaf67a20cdafe55ec1c64aa2c6 100644 (file)
@@ -171,6 +171,8 @@ bool X86Subtarget::IsLegalToCallImmediateAddr(const TargetMachine &TM) const {
 }
 
 static bool OSHasAVXSupport() {
+#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
@@ -183,6 +185,9 @@ static bool OSHasAVXSupport() {
   int rEAX = 0; // Ensures we return false
 #endif
   return (rEAX & 6) == 6;
+#else
+  return false;
+#endif
 }
 
 void X86Subtarget::AutoDetectSubtargetFeatures() {