diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/ARM64/ARM64FastISel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM64/ARM64FastISel.cpp b/llvm/lib/Target/ARM64/ARM64FastISel.cpp index 1af50739099..78cde1c22c9 100644 --- a/llvm/lib/Target/ARM64/ARM64FastISel.cpp +++ b/llvm/lib/Target/ARM64/ARM64FastISel.cpp @@ -1593,6 +1593,11 @@ bool ARM64FastISel::SelectRet(const Instruction *I) { EVT RVEVT = TLI.getValueType(RV->getType()); if (!RVEVT.isSimple()) return false; + + // Vectors (of > 1 lane) in big endian need tricky handling. + if (RVEVT.isVector() && RVEVT.getVectorNumElements() > 1) + return false; + MVT RVVT = RVEVT.getSimpleVT(); if (RVVT == MVT::f128) return false; |

