RBIT Instruction only available for ARMv6t2 and above.
authorWeiming Zhao <weimingz@codeaurora.org>
Fri, 8 Jan 2016 18:43:41 +0000 (18:43 +0000)
committerWeiming Zhao <weimingz@codeaurora.org>
Fri, 8 Jan 2016 18:43:41 +0000 (18:43 +0000)
commit432ca7460b008060245c92e1a4c3ff4cf787e0ce
tree7ca9481989c2624ed80ae3d46a6461fb542ce1d0
parentad748b70b56cb6a2d74ff4b3bf38dbe24b7d838c
RBIT Instruction only available for ARMv6t2 and above.

Summary:
r255334 matches bit-reverse pattern in InstCombine and generates calls to Instrinsic::bitreverse.

RBIT instruction is only available for ARMv6t2 and above. This patch has the intrinsic expanded during legalization for ARMv4 and ARMv5.

Patch by Z. Zheng <zhaoshiz@codeaurora.org>

Reviewers: apazos, jmolloy, weimingz

Subscribers: aemerson, rengolin, llvm-commits

Differential Revision: http://reviews.llvm.org/D15932

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257188 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/bit-reverse-to-rbit.ll [new file with mode: 0644]