Tweak Thumb1 ADD encoding selection a bit.
authorJim Grosbach <grosbach@apple.com>
Wed, 31 Aug 2011 17:07:33 +0000 (17:07 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 31 Aug 2011 17:07:33 +0000 (17:07 +0000)
commit0f3abd8d68cfb4a0705d0a8140d7f7dce32f6e77
tree4f390cc6b292ef6fad5e5a78d78385b4c4d5b2fb
parent61545829832ba0375249c42c84843d0b62c8f55f
Tweak Thumb1 ADD encoding selection a bit.

When the destination register of an add immediate instruction is
explicitly specified, encoding T1 is preferred, else encoding T2 is
preferred.

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