OSDN Git Service

ARM: fix assert on unpredictable POP instruction.
authorTim Northover <tnorthover@apple.com>
Thu, 24 Oct 2013 09:37:18 +0000 (09:37 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 24 Oct 2013 09:37:18 +0000 (09:37 +0000)
commitcdd776d13f799da1aff4b2c9c58a236bee74ea2e
treebe61fe1dc84ff8f381bd9e462019b12d9d4f147d
parent1a03bec22798a8a07147e7caf47d581841ac9337
ARM: fix assert on unpredictable POP instruction.

POP instructions are aliased to the ARM LDM variants but have different syntax.
This caused two problems: we tried to access a non-existent operand to annotate
the '!', and the error message didn't make much sense.

With some vigorous hand-waving in the error message both problems can be
fixed.

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