diff options
| author | Anshuman Dasgupta <adasgupt@codeaurora.org> | 2013-02-21 19:39:40 +0000 |
|---|---|---|
| committer | Anshuman Dasgupta <adasgupt@codeaurora.org> | 2013-02-21 19:39:40 +0000 |
| commit | d062c704446ada1bd93d378cd4f09c03ccc745f8 (patch) | |
| tree | e8d6d5546f22333dc28e833af7608899d2c974c0 /llvm/lib/Target | |
| parent | 2ff4dc0ff2e9b72d70ccd54e9552d869f33d4b4b (diff) | |
| download | bcm5719-llvm-d062c704446ada1bd93d378cd4f09c03ccc745f8.tar.gz bcm5719-llvm-d062c704446ada1bd93d378cd4f09c03ccc745f8.zip | |
Hexagon: Expand cttz, ctlz, and ctpop for now.
llvm-svn: 175783
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonISelLowering.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp index 99a5db35e13..fac931a4bde 100644 --- a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp +++ b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp @@ -1366,10 +1366,15 @@ HexagonTargetLowering::HexagonTargetLowering(HexagonTargetMachine setOperationAction(ISD::FSINCOS, MVT::f64, Expand); setOperationAction(ISD::FSINCOS, MVT::f32, Expand); setOperationAction(ISD::CTPOP, MVT::i32, Expand); + setOperationAction(ISD::CTPOP, MVT::i64, Expand); setOperationAction(ISD::CTTZ , MVT::i32, Expand); + setOperationAction(ISD::CTTZ , MVT::i64, Expand); setOperationAction(ISD::CTTZ_ZERO_UNDEF, MVT::i32, Expand); + setOperationAction(ISD::CTTZ_ZERO_UNDEF, MVT::i64, Expand); setOperationAction(ISD::CTLZ , MVT::i32, Expand); + setOperationAction(ISD::CTLZ , MVT::i64, Expand); setOperationAction(ISD::CTLZ_ZERO_UNDEF, MVT::i32, Expand); + setOperationAction(ISD::CTLZ_ZERO_UNDEF, MVT::i64, Expand); setOperationAction(ISD::ROTL , MVT::i32, Expand); setOperationAction(ISD::ROTR , MVT::i32, Expand); setOperationAction(ISD::BSWAP, MVT::i32, Expand); |

