Thumb2 add immediate alias for SP
authorMihai Popa <mihail.popa@gmail.com>
Mon, 19 Aug 2013 15:02:25 +0000 (15:02 +0000)
committerMihai Popa <mihail.popa@gmail.com>
Mon, 19 Aug 2013 15:02:25 +0000 (15:02 +0000)
commit756e89c8c2a3c30ce3a73ed13724aad1b41a5608
tree0f65e8909417964cfc256849f7a3d741fe82be04
parentf12df0ad507a620daedcab4041d473e40af81eb9
Thumb2 add immediate alias for SP

The Thumb2 add immediate is in fact defined for SP. The manual is misleading as it points to a different section for add immediate with SP, however the encoding is the same as for add immediate with register only with the SP operand hard coded. As such add immediate with SP and add immediate with register can safely be treated as the same instruction.

All the patch does is adjust a register constraint on an instruction alias.

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