Thumb parsing and encoding for SBC.

llvm-svn: 138311
This commit is contained in:
Jim Grosbach 2011-08-22 23:55:58 +00:00
parent c55efe4fb2
commit 3636be3c8f
2 changed files with 11 additions and 2 deletions

View File

@ -2755,7 +2755,8 @@ StringRef ARMAsmParser::splitMnemonic(StringRef Mnemonic,
// predicated but do have a carry-set and so weren't caught above.
if (Mnemonic != "adcs" && Mnemonic != "bics" && Mnemonic != "movs" &&
Mnemonic != "muls" && Mnemonic != "smlals" && Mnemonic != "smulls" &&
Mnemonic != "umlals" && Mnemonic != "umulls" && Mnemonic != "lsls") {
Mnemonic != "umlals" && Mnemonic != "umulls" && Mnemonic != "lsls" &&
Mnemonic != "sbcs") {
unsigned CC = StringSwitch<unsigned>(Mnemonic.substr(Mnemonic.size()-2))
.Case("eq", ARMCC::EQ)
.Case("ne", ARMCC::NE)

View File

@ -406,4 +406,12 @@ _func:
@------------------------------------------------------------------------------
rsbs r1, r3, #0
rsbs r1, r3, #0 @ encoding: [0x59,0x42]
@ CHECK: rsbs r1, r3, #0 @ encoding: [0x59,0x42]
@------------------------------------------------------------------------------
@ SBC
@------------------------------------------------------------------------------
sbcs r4, r3
@ CHECK: sbcs r4, r3 @ encoding: [0x9c,0x41]