[PPC64LE] Temporarily disable VSX support in little-endian mode
[oota-llvm.git] / lib / Target / PowerPC / PPCSubtarget.cpp
index ea9daee4f8e83ab3545f2ca4c98bfe36848edf10..74a1392190b54c99247bb6c51ca40fc5a5e19748 100644 (file)
@@ -156,6 +156,11 @@ void PPCSubtarget::resetSubtargetFeatures(StringRef CPU, StringRef FS) {
 
   // Determine endianness.
   IsLittleEndian = (TargetTriple.getArch() == Triple::ppc64le);
+
+  // FIXME: For now, we disable VSX in little-endian mode until endian
+  // issues in those instructions can be addressed.
+  if (IsLittleEndian)
+    HasVSX = false;
 }
 
 /// hasLazyResolverStub - Return true if accesses to the specified global have