Disable AArch64 fast-isel on big-endian call vector returns.
[oota-llvm.git] / lib / Target / AArch64 / AArch64FastISel.cpp
index 3ead55c40a94431a68426e7e485e36adb7c57238..c3f6859f510d6840396ef2564bd0eaf782793323 100644 (file)
@@ -3035,6 +3035,11 @@ bool AArch64FastISel::finishCall(CallLoweringInfo &CLI, MVT RetVT,
 
     // Copy all of the result registers out of their specified physreg.
     MVT CopyVT = RVLocs[0].getValVT();
+
+    // TODO: Handle big-endian results
+    if (CopyVT.isVector() && !Subtarget->isLittleEndian())
+      return false;
+
     unsigned ResultReg = createResultReg(TLI.getRegClassFor(CopyVT));
     BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc,
             TII.get(TargetOpcode::COPY), ResultReg)