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:
Jim Grosbach 2011-09-06 22:06:40 +00:00
parent ef88a92677
commit 77951908b7
2 changed files with 16 additions and 6 deletions

View File

@ -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;
}

View File

@ -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
@------------------------------------------------------------------------------