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:
570751c
)
Add testcases for harder combining cases.
author
Chris Lattner
<sabre@nondot.org>
Fri, 9 Apr 2004 23:43:48 +0000
(23:43 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 9 Apr 2004 23:43:48 +0000
(23:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12799
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/select.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/select.ll
b/test/Transforms/InstCombine/select.ll
index b09cae4d7ab6b7b24e94fe53e3aaf822c91f5ec4..e89c25250f0a0ee444f938cb7bda0b6fc5f820b1 100644
(file)
--- a/
test/Transforms/InstCombine/select.ll
+++ b/
test/Transforms/InstCombine/select.ll
@@
-61,3
+61,21
@@
int %test11(int %a) {
ret int %R
}
+int %test12(bool %cond, int %a) {
+ %b = or int %a, 1
+ %c = select bool %cond, int %b, int %a
+ ret int %c
+}
+
+int %test12a(bool %cond, int %a) {
+ %b = shr int %a, ubyte 1
+ %c = select bool %cond, int %b, int %a
+ ret int %c
+}
+
+int %test12b(bool %cond, int %a) {
+ %b = shr int %a, ubyte 1
+ %c = select bool %cond, int %a, int %b
+ ret int %c
+}
+