diff options
author | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2014-06-05 16:21:13 +0000 |
---|---|---|
committer | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2014-06-05 16:21:13 +0000 |
commit | 82f9e8a62ed327d8ac2787444fd7b3c6ab0c17fc (patch) | |
tree | e949d141c869a65ef3d75164d16c631ca0b52e34 /llvm/lib/Target/PowerPC/PPCSubtarget.cpp | |
parent | b84b37d60606fc7f147690a24e8706b6967359be (diff) | |
download | bcm5719-llvm-82f9e8a62ed327d8ac2787444fd7b3c6ab0c17fc.tar.gz bcm5719-llvm-82f9e8a62ed327d8ac2787444fd7b3c6ab0c17fc.zip |
[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.
llvm-svn: 210271
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCSubtarget.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp index ea9daee4f8e..74a1392190b 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/llvm/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 |