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:
c326c92
)
Add some more cases we should combine
author
Chris Lattner
<sabre@nondot.org>
Thu, 8 Apr 2004 04:43:04 +0000
(
04:43
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 8 Apr 2004 04:43:04 +0000
(
04:43
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12768
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 6a7ff1a6adb4d560022538745b07750aa39f41aa..511302e2a3b1165a13eb165993ec3498da86e1cf 100644
(file)
--- a/
test/Transforms/InstCombine/select.ll
+++ b/
test/Transforms/InstCombine/select.ll
@@
-35,3
+35,22
@@
int %test6(bool %C) {
ret int %V
}
+bool %test7(bool %C, bool %X) {
+ %R = select bool %C, bool true, bool %X ; R = or C, X
+ ret bool %R
+}
+
+bool %test8(bool %C, bool %X) {
+ %R = select bool %C, bool %X, bool false ; R = and C, X
+ ret bool %R
+}
+
+bool %test9(bool %C, bool %X) {
+ %R = select bool %C, bool false, bool %X ; R = and !C, X
+ ret bool %R
+}
+
+bool %test10(bool %C, bool %X) {
+ %R = select bool %C, bool %X, bool true ; R = or !C, X
+ ret bool %R
+}