mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
Thumb2 parsing and encoding for DBG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139191 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ef88a92677
commit
77951908b7
@ -3173,13 +3173,11 @@ def t2WFI : T2I_hint<0b00000011, "wfi", ".w">;
|
||||
def t2SEV : T2I_hint<0b00000100, "sev", ".w">;
|
||||
|
||||
def t2DBG : T2I<(outs), (ins imm0_15:$opt), NoItinerary, "dbg", "\t$opt", []> {
|
||||
let Inst{31-20} = 0xf3a;
|
||||
let Inst{15-14} = 0b10;
|
||||
let Inst{12} = 0;
|
||||
let Inst{10-8} = 0b000;
|
||||
let Inst{7-4} = 0b1111;
|
||||
|
||||
bits<4> opt;
|
||||
let Inst{31-20} = 0b111100111010;
|
||||
let Inst{19-16} = 0b1111;
|
||||
let Inst{15-8} = 0b10000000;
|
||||
let Inst{7-4} = 0b1111;
|
||||
let Inst{3-0} = opt;
|
||||
}
|
||||
|
||||
|
@ -356,6 +356,18 @@ _func:
|
||||
@ CHECK: cmp.w r1, r4, ror #15 @ encoding: [0xb1,0xeb,0xf4,0x3f]
|
||||
|
||||
|
||||
@------------------------------------------------------------------------------
|
||||
@ DBG
|
||||
@------------------------------------------------------------------------------
|
||||
dbg #5
|
||||
dbg #0
|
||||
dbg #15
|
||||
|
||||
@ CHECK: dbg #5 @ encoding: [0xaf,0xf3,0xf5,0x80]
|
||||
@ CHECK: dbg #0 @ encoding: [0xaf,0xf3,0xf0,0x80]
|
||||
@ CHECK: dbg #15 @ encoding: [0xaf,0xf3,0xff,0x80]
|
||||
|
||||
|
||||
@------------------------------------------------------------------------------
|
||||
@ IT
|
||||
@------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user