Thumb2 ADD/SUB instructions encoding selection outside IT block.
authorJim Grosbach <grosbach@apple.com>
Fri, 28 Oct 2011 16:57:07 +0000 (16:57 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 28 Oct 2011 16:57:07 +0000 (16:57 +0000)
commit5d0492cfc4521ccb13b4961227b279991a17c393
tree6bcb5252705b86ab525a2ac80d23400de6761da1
parentbe5d6bcfc6ad4d5b771bb491c8ec6c87fcd3c425
Thumb2 ADD/SUB instructions encoding selection outside IT block.

Outside an IT block, "add r3, #2" should select a 32-bit wide encoding
rather than generating an error indicating the 16-bit encoding is only
legal in an IT block (outside, the 'S' suffic is required for the 16-bit
encoding).

rdar://10348481

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