Add support for parsing ARM arithmetic instructions that update or don't update
authorKevin Enderby <enderby@apple.com>
Thu, 9 Dec 2010 19:19:43 +0000 (19:19 +0000)
committerKevin Enderby <enderby@apple.com>
Thu, 9 Dec 2010 19:19:43 +0000 (19:19 +0000)
commit193c3acbe5cdb60767d114016970e898c7502d7a
treed7c68e193543b8d704db96fc56e2a13482fd7d40
parent027d6e8d1ca04e4096fb3a27579b861d861466c5
Add support for parsing ARM arithmetic instructions that update or don't update
the condition codes.  Where the ones that do have an 's' suffix and the ones
that don't don't have the suffix.  The trick is if MatchInstructionImpl() fails
we try again after adding a CCOut operand with the correct value and removing
the 's' if present.  Four simple test cases added for now, lots more to come.

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