aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2006-09-08 12:47:03 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2006-09-08 12:47:03 +0000
commit5c2aa0a4d819039a8f31d04041f6c8056cd10fb7 (patch)
treecb0e9362067e3d62a20c4bfe6c5ad5a893e41723
parent6cec34e094b0c14c15adcc3f9cbbbf6af7cb6c44 (diff)
implement unconditional branches
fix select.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30186 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/ARM/ARMInstrInfo.td4
-rw-r--r--test/CodeGen/ARM/select.ll1
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td
index 58c7b40608..6cd90d99ba 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 87251abfb0..4e017bf27d 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: