diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2006-10-18 16:20:57 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2006-10-18 16:20:57 +0000 |
commit | 01dd97a8aa42d42caa98db161722ced03ffcd194 (patch) | |
tree | c9f3a0b9cdaad28def178ed28e995af8ec8736dc /llvm/lib/Target/ARM | |
parent | a15b0ebb5e12aecc70317846eaef6827cec56e0f (diff) | |
download | bcm5719-llvm-01dd97a8aa42d42caa98db161722ced03ffcd194.tar.gz bcm5719-llvm-01dd97a8aa42d42caa98db161722ced03ffcd194.zip |
add isTerminatortto b and bcond
llvm-svn: 31036
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r-- | llvm/lib/Target/ARM/ARMInstrInfo.td | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.td b/llvm/lib/Target/ARM/ARMInstrInfo.td index aa26e304ea2..5392929462c 100644 --- a/llvm/lib/Target/ARM/ARMInstrInfo.td +++ b/llvm/lib/Target/ARM/ARMInstrInfo.td @@ -210,13 +210,15 @@ let Defs = [R0] in { def UMULL : IntBinOp<"umull r12,", mulhu>; } -def bcond : InstARM<(ops brtarget:$dst, CCOp:$cc), - "b$cc $dst", - [(armbr bb:$dst, imm:$cc)]>; - -def b : InstARM<(ops brtarget:$dst), - "b $dst", - [(br bb:$dst)]>; +let isTerminator = 1 in { + def bcond : InstARM<(ops brtarget:$dst, CCOp:$cc), + "b$cc $dst", + [(armbr bb:$dst, imm:$cc)]>; + + def b : InstARM<(ops brtarget:$dst), + "b $dst", + [(br bb:$dst)]>; +} def cmp : InstARM<(ops IntRegs:$a, op_addr_mode1:$b), "cmp $a, $b", |