diff options
author | Craig Topper <craig.topper@gmail.com> | 2016-04-26 05:04:33 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2016-04-26 05:04:33 +0000 |
commit | edb4a6ba982df35c02a6418fa9faf091459a306f (patch) | |
tree | 82a7cef79d06c2c7349696105f105af7ef5ed029 /llvm/lib/Target | |
parent | 5d6d4841eda8ec1eee5c170a920702e4a5d7bd71 (diff) | |
download | bcm5719-llvm-edb4a6ba982df35c02a6418fa9faf091459a306f.tar.gz bcm5719-llvm-edb4a6ba982df35c02a6418fa9faf091459a306f.zip |
[ARM] Expand v1i64 and v2i64 ctlz.
The default is legal, which results in 'Cannot select' errors.
llvm-svn: 267520
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index 73571ff993a..13a233d4ecd 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -580,6 +580,9 @@ ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM, setOperationAction(ISD::CTPOP, MVT::v1i64, Expand); setOperationAction(ISD::CTPOP, MVT::v2i64, Expand); + setOperationAction(ISD::CTLZ, MVT::v1i64, Expand); + setOperationAction(ISD::CTLZ, MVT::v2i64, Expand); + // NEON does not have single instruction CTTZ for vectors. setOperationAction(ISD::CTTZ, MVT::v8i8, Custom); setOperationAction(ISD::CTTZ, MVT::v4i16, Custom); |