diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-04-26 05:26:51 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-04-26 05:26:51 +0000 |
commit | c5551bfc266f1a54d7720ecd3484eb5fcfc16385 (patch) | |
tree | 338f12ebec9fbe0a9de91937a6e1599b1291e20a /llvm/lib | |
parent | d8d6be4f99766c1828fa4651226bba1d1f9eac82 (diff) | |
download | bcm5719-llvm-c5551bfc266f1a54d7720ecd3484eb5fcfc16385.tar.gz bcm5719-llvm-c5551bfc266f1a54d7720ecd3484eb5fcfc16385.zip |
[AArch64] Expand v1i64 and v2i64 ctlz.
The default is legal, which results in 'Cannot select' errors.
llvm-svn: 267522
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp index 743a57b36de..26658eacefc 100644 --- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp @@ -595,6 +595,9 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM, setOperationAction(ISD::SINT_TO_FP, MVT::v4i32, Custom); setOperationAction(ISD::UINT_TO_FP, MVT::v4i32, Custom); + setOperationAction(ISD::CTLZ, MVT::v1i64, Expand); + setOperationAction(ISD::CTLZ, MVT::v2i64, Expand); + // AArch64 doesn't have MUL.2d: setOperationAction(ISD::MUL, MVT::v2i64, Expand); // Custom handling for some quad-vector types to detect MULL. |