OSDN Git Service

ARM/Thumb2 'cmp rn, #imm' alias to cmn.
authorJim Grosbach <grosbach@apple.com>
Wed, 14 Dec 2011 17:30:24 +0000 (17:30 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 14 Dec 2011 17:30:24 +0000 (17:30 +0000)
commit8d11c6349f9bf276534907245946518042c1bb60
tree5de5a5144cfce484dd6a44f79735dc52ea882535
parent404ed3c2239ff394270053bdcb76a5a4908af7ce
ARM/Thumb2 'cmp rn, #imm' alias to cmn.

When 'cmp rn #imm' doesn't match due to the immediate not being representable,
but 'cmn rn, #-imm' does match, use the latter in place of the former, as
it's equivalent.

rdar://10552389

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