mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-06 09:44:39 +00:00
Thumb parsing and encoding for SBC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138311 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
934755ac04
commit
04d55f1905
@ -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)
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user