projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c2aa0a
)
fix select.ll to always test a select node
author
Rafael Espindola
<rafael.espindola@gmail.com>
Fri, 8 Sep 2006 12:52:50 +0000
(12:52 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Fri, 8 Sep 2006 12:52:50 +0000
(12:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30187
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/CodeGen/ARM/select.ll
patch
|
blob
|
history
diff --git
a/test/CodeGen/ARM/select.ll
b/test/CodeGen/ARM/select.ll
index 4e017bf27d60c8fe9426dfa33303512ff165110b..7204c801c5b9b5c99a99de897bbc4e6d69911ed3 100644
(file)
--- a/
test/CodeGen/ARM/select.ll
+++ b/
test/CodeGen/ARM/select.ll
@@
-3,15
+3,6
@@
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
+ %tmp1 = select bool %tmp, int 2, int 3
+ ret int %tmp1
}