add isTerminatortto b and bcond

llvm-svn: 31036
This commit is contained in:
Rafael Espindola 2006-10-18 16:20:57 +00:00
parent a15b0ebb5e
commit 01dd97a8aa
1 changed files with 8 additions and 6 deletions

View File

@ -210,13 +210,15 @@ let Defs = [R0] in {
def UMULL : IntBinOp<"umull r12,", mulhu>; def UMULL : IntBinOp<"umull r12,", mulhu>;
} }
def bcond : InstARM<(ops brtarget:$dst, CCOp:$cc), let isTerminator = 1 in {
"b$cc $dst", def bcond : InstARM<(ops brtarget:$dst, CCOp:$cc),
[(armbr bb:$dst, imm:$cc)]>; "b$cc $dst",
[(armbr bb:$dst, imm:$cc)]>;
def b : InstARM<(ops brtarget:$dst), def b : InstARM<(ops brtarget:$dst),
"b $dst", "b $dst",
[(br bb:$dst)]>; [(br bb:$dst)]>;
}
def cmp : InstARM<(ops IntRegs:$a, op_addr_mode1:$b), def cmp : InstARM<(ops IntRegs:$a, op_addr_mode1:$b),
"cmp $a, $b", "cmp $a, $b",