[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/select.ll

Chris Lattner lattner at cs.uiuc.edu
Tue Mar 30 13:37:04 PST 2004


Changes in directory llvm/test/Regression/Transforms/InstCombine:

select.ll updated: 1.1 -> 1.2

---
Log message:

Add some testcases for select simplification



---
Diffs of the changes:  (+19 -0)

Index: llvm/test/Regression/Transforms/InstCombine/select.ll
diff -u llvm/test/Regression/Transforms/InstCombine/select.ll:1.1 llvm/test/Regression/Transforms/InstCombine/select.ll:1.2
--- llvm/test/Regression/Transforms/InstCombine/select.ll:1.1	Fri Mar 12 00:01:00 2004
+++ llvm/test/Regression/Transforms/InstCombine/select.ll	Tue Mar 30 13:36:54 2004
@@ -15,4 +15,23 @@
 	ret int %C
 }
 
+int %test3(bool %C, int %I) {
+	%V = select bool %C, int %I, int %I         ; V = I
+	ret int %V
+}
+
+bool %test4(bool %C) {
+	%V = select bool %C, bool true, bool false  ; V = C
+	ret bool %V
+}
+
+bool %test5(bool %C) {
+	%V = select bool %C, bool false, bool true  ; V = !C
+	ret bool %V
+}
+
+int %test6(bool %C) {
+	%V = select bool %C, int 1, int 0         ; V = cast C to int
+	ret int %V
+}
 





More information about the llvm-commits mailing list