[PPC64LE] Temporarily disable VSX support in little-endian mode
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Thu, 5 Jun 2014 16:21:13 +0000 (16:21 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Thu, 5 Jun 2014 16:21:13 +0000 (16:21 +0000)
This is a preliminary patch for the PowerPC64LE support.  In stage 1
of the vector support, we will support the VMX (Altivec) instruction
set, but will not yet support the VSX instructions.  This is merely a
staging issue to provide functional vector support as soon as
possible.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210271 91177308-0d34-0410-b5e6-96231b3b80d8

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