[llvm] r210271 - [PPC64LE] Temporarily disable VSX support in little-endian mode

Bill Schmidt wschmidt at linux.vnet.ibm.com
Thu Jun 5 09:21:13 PDT 2014


Author: wschmidt
Date: Thu Jun  5 11:21:13 2014
New Revision: 210271

URL: http://llvm.org/viewvc/llvm-project?rev=210271&view=rev
Log:
[PPC64LE] Temporarily disable VSX support in little-endian mode

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.


Modified:
    llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp

Modified: llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp?rev=210271&r1=210270&r2=210271&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp Thu Jun  5 11:21:13 2014
@@ -156,6 +156,11 @@ void PPCSubtarget::resetSubtargetFeature
 
   // 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





More information about the llvm-commits mailing list