mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 01:31:05 +00:00
Thumb assembly parsing and encoding for CMP.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137963 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dbe46744c5
commit
0d1511c022
@ -910,7 +910,7 @@ def tCMNz : // A8.6.33
|
||||
|
||||
// CMP immediate
|
||||
let isCompare = 1, Defs = [CPSR] in {
|
||||
def tCMPi8 : T1pI<(outs), (ins tGPR:$Rn, i32imm:$imm8), IIC_iCMPi,
|
||||
def tCMPi8 : T1pI<(outs), (ins tGPR:$Rn, imm0_255:$imm8), IIC_iCMPi,
|
||||
"cmp", "\t$Rn, $imm8",
|
||||
[(ARMcmp tGPR:$Rn, imm0_255:$imm8)]>,
|
||||
T1General<{1,0,1,?,?}> {
|
||||
|
@ -144,3 +144,14 @@ _func:
|
||||
|
||||
@ CHECK: cmn r5, r1 @ encoding: [0xcd,0x42]
|
||||
|
||||
|
||||
@------------------------------------------------------------------------------
|
||||
@ CMP
|
||||
@------------------------------------------------------------------------------
|
||||
cmp r6, #32
|
||||
cmp r3, r4
|
||||
cmp r8, r1
|
||||
|
||||
@ CHECK: cmp r6, #32 @ encoding: [0x20,0x2e]
|
||||
@ CHECK: cmp r3, r4 @ encoding: [0xa3,0x42]
|
||||
@ CHECK: cmp r8, r1 @ encoding: [0x88,0x45]
|
||||
|
Loading…
x
Reference in New Issue
Block a user