ARM integrated assembler should encoding choice for add/sub imm.
authorJim Grosbach <grosbach@apple.com>
Fri, 30 Mar 2012 17:20:40 +0000 (17:20 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 30 Mar 2012 17:20:40 +0000 (17:20 +0000)
commit2d30d947ec2626e8b1a9b577cdfa4121f476c3f5
tree153546633ebee21ec116f7df11edac88c6179ccc
parent092c5ccf5bdcaa53151645e5628cec77fcf4062b
ARM integrated assembler should encoding choice for add/sub imm.

For 'adds r2, r2, #56' outside of an IT block, the 16-bit encoding T2
can be used for this syntax. Prefer the narrow encoding when possible.

rdar://11156277

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153759 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/basic-thumb2-instructions.s