[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/select.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Apr 9 18:44:01 PDT 2004
Changes in directory llvm/test/Regression/Transforms/InstCombine:
select.ll updated: 1.4 -> 1.5
---
Log message:
Add testcases for harder combining cases.
---
Diffs of the changes: (+18 -0)
Index: llvm/test/Regression/Transforms/InstCombine/select.ll
diff -u llvm/test/Regression/Transforms/InstCombine/select.ll:1.4 llvm/test/Regression/Transforms/InstCombine/select.ll:1.5
--- llvm/test/Regression/Transforms/InstCombine/select.ll:1.4 Fri Apr 9 13:19:29 2004
+++ llvm/test/Regression/Transforms/InstCombine/select.ll Fri Apr 9 18:43:48 2004
@@ -61,3 +61,21 @@
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
+}
+
More information about the llvm-commits
mailing list