[ARM] Constant Materialize: imms with specific value can be encoded into mov.w
authorWeiming Zhao <weimingz@codeaurora.org>
Wed, 3 Aug 2016 17:05:23 +0000 (17:05 +0000)
committerWeiming Zhao <weimingz@codeaurora.org>
Wed, 3 Aug 2016 17:05:23 +0000 (17:05 +0000)
commit57dc4cf0e1dc149f05569aee7c5dd8fec04f81b4
treeb556506ad1ad97783d201353a01b6c686411b92a
parent8cf51c340dcb0c150a5dcb8c820c758c781404d9
[ARM] Constant Materialize: imms with specific value can be encoded into mov.w

Summary: Thumb2 supports encoding immediates with specific patterns into mov.w by splatting the low 8 bits into other bytes.

Reviewers: john.brawn, jmolloy

Subscribers: jmolloy, aemerson, rengolin, samparker, llvm-commits

Differential Revision: https://reviews.llvm.org/D23090

llvm-svn: 277610
llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
llvm/test/CodeGen/ARM/subtarget-no-movt.ll