ARM: Thumb add(sp plus register) asm constraints.
authorJim Grosbach <grosbach@apple.com>
Fri, 27 Apr 2012 23:51:36 +0000 (23:51 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 27 Apr 2012 23:51:36 +0000 (23:51 +0000)
commita9cc08f24f61e2663a131d7ac16c329b75162e7b
treedc2b18dcff471f7b42d87e2fd3d06cac2bd4a38b
parentbb32f1d545241ab957f402165cec359d4473c0ca
ARM: Thumb add(sp plus register) asm constraints.

Make sure when parsing the Thumb1 sp+register ADD instruction that
the source and destination operands match. In thumb2, just use the
wide encoding if they don't. In Thumb1, issue a diagnostic.

rdar://11219154

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