[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/select.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Apr 7 23:44:01 PDT 2004
Changes in directory llvm/test/Regression/Transforms/InstCombine:
select.ll updated: 1.2 -> 1.3
---
Log message:
Add some more cases we should combine
---
Diffs of the changes: (+19 -0)
Index: llvm/test/Regression/Transforms/InstCombine/select.ll
diff -u llvm/test/Regression/Transforms/InstCombine/select.ll:1.2 llvm/test/Regression/Transforms/InstCombine/select.ll:1.3
--- llvm/test/Regression/Transforms/InstCombine/select.ll:1.2 Tue Mar 30 13:36:54 2004
+++ llvm/test/Regression/Transforms/InstCombine/select.ll Wed Apr 7 23:43:04 2004
@@ -35,3 +35,22 @@
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
+}
More information about the llvm-commits
mailing list