summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/select.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2006-08-21 22:00:32 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2006-08-21 22:00:32 +0000
commit3c000bf817f90212c8e5585f7c1981e68ee393fc (patch)
treed7591062229ad28fedaa3faf624f3227a55a0ad9 /test/CodeGen/ARM/select.ll
parent4a9df24ba8b30556a31efef37c9feadd2903f7d0 (diff)
downloadllvm-3c000bf817f90212c8e5585f7c1981e68ee393fc.tar.gz
llvm-3c000bf817f90212c8e5585f7c1981e68ee393fc.tar.bz2
llvm-3c000bf817f90212c8e5585f7c1981e68ee393fc.tar.xz
initial support for select
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/select.ll')
-rw-r--r--test/CodeGen/ARM/select.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/select.ll b/test/CodeGen/ARM/select.ll
new file mode 100644
index 0000000000..71c5ebafe8
--- /dev/null
+++ b/test/CodeGen/ARM/select.ll
@@ -0,0 +1,15 @@
+int %f(int %a) {
+entry:
+ %tmp = seteq int %a, 4 ; <bool> [#uses=1]
+ br bool %tmp, label %cond_false, label %cond_true
+
+cond_true: ; preds = %entry
+ br label %return
+
+cond_false: ; preds = %entry
+ br label %return
+
+return: ; preds = %cond_false, %cond_true
+ %retval.0 = phi int [ 2, %cond_true ], [ 3, %cond_false ] ; <int> [#uses=1]
+ ret int %retval.0
+}