[PowerPC 4/4] Enable little-endian support for VSX.

With the foregoing three patches, VSX instructions can be used for
little endian.  This patch removes the restriction that prevented
this, and re-enables the test cases from the first three patches.





git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223792 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Schmidt
2014-12-09 16:59:57 +00:00
parent 9a2a305ed4
commit 44603b67b1
5 changed files with 10 additions and 36 deletions

View File

@@ -154,13 +154,6 @@ void PPCSubtarget::initSubtargetFeatures(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;
HasP8Vector = false;
}
// Determine default ABI.
if (TargetABI == PPC_ABI_UNKNOWN) {
if (!isDarwin() && IsPPC64) {