From: Rafael Espindola Date: Fri, 8 Sep 2006 12:47:03 +0000 (+0000) Subject: implement unconditional branches X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5c2aa0a4d819039a8f31d04041f6c8056cd10fb7;p=oota-llvm.git implement unconditional branches fix select.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30186 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td index 58c7b40608a..6cd90d99baa 100644 --- a/lib/Target/ARM/ARMInstrInfo.td +++ b/lib/Target/ARM/ARMInstrInfo.td @@ -127,6 +127,10 @@ 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, IntRegs:$b), "cmp $a, $b", [(armcmp IntRegs:$a, IntRegs:$b)]>; diff --git a/test/CodeGen/ARM/select.ll b/test/CodeGen/ARM/select.ll index 87251abfb03..4e017bf27d6 100644 --- a/test/CodeGen/ARM/select.ll +++ b/test/CodeGen/ARM/select.ll @@ -1,5 +1,4 @@ ; RUN: llvm-as < %s | llc -march=arm -; XFAIL: * int %f(int %a) { entry: