summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2006-08-24 13:45:55 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2006-08-24 13:45:55 +0000
commit687bc49d1ada3fe0a2cd3fb5c044f12d267f259f (patch)
treed5d505e4b10607c775030054511679fa2e1e5bb4 /test
parent3bca110dc35a930b28dd9e05105b52e9cd3c98ee (diff)
downloadllvm-687bc49d1ada3fe0a2cd3fb5c044f12d267f259f.tar.gz
llvm-687bc49d1ada3fe0a2cd3fb5c044f12d267f259f.tar.bz2
llvm-687bc49d1ada3fe0a2cd3fb5c044f12d267f259f.tar.xz
initial support for branches
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29854 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM/branch.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/branch.ll b/test/CodeGen/ARM/branch.ll
new file mode 100644
index 0000000000..21e43127c3
--- /dev/null
+++ b/test/CodeGen/ARM/branch.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | llc -march=arm
+void %f(int %a, int* %v) {
+entry:
+ %tmp = seteq int %a, 0 ; <bool> [#uses=1]
+ br bool %tmp, label %cond_true, label %return
+
+cond_true: ; preds = %entry
+ store int 0, int* %v
+ ret void
+
+return: ; preds = %entry
+ ret void
+}