summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2014-06-05 16:21:13 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2014-06-05 16:21:13 +0000
commite1e0d4f3673a71f9f3ff5f2c27a7a0f10b38b7a1 (patch)
treef1458b5b8fdb42de99a4d087d544370fbc9bdce6 /lib/Target/PowerPC
parentb49c13cc846c3448f3f4775ff3f889d48baf3821 (diff)
downloadllvm-e1e0d4f3673a71f9f3ff5f2c27a7a0f10b38b7a1.tar.gz
llvm-e1e0d4f3673a71f9f3ff5f2c27a7a0f10b38b7a1.tar.bz2
llvm-e1e0d4f3673a71f9f3ff5f2c27a7a0f10b38b7a1.tar.xz
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC')
-rw-r--r--lib/Target/PowerPC/PPCSubtarget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.cpp b/lib/Target/PowerPC/PPCSubtarget.cpp
index ea9daee4f8..74a1392190 100644
--- a/lib/Target/PowerPC/PPCSubtarget.cpp
+++ b/lib/Target/PowerPC/PPCSubtarget.cpp
@@ -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