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

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 28 14:39:49 PDT 2004



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

and.ll updated: 1.22 -> 1.23
---
Log message:

New testcases


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

Index: llvm/test/Regression/Transforms/InstCombine/and.ll
diff -u llvm/test/Regression/Transforms/InstCombine/and.ll:1.22 llvm/test/Regression/Transforms/InstCombine/and.ll:1.23
--- llvm/test/Regression/Transforms/InstCombine/and.ll:1.22	Mon Sep 27 14:25:20 2004
+++ llvm/test/Regression/Transforms/InstCombine/and.ll	Tue Sep 28 16:39:35 2004
@@ -142,3 +142,39 @@
 	%D = and sbyte %C, 1         ;; chop off sign
 	ret sbyte %D
 }
+
+bool %test22(int %A) {
+	%B = seteq int %A, 1
+	%C = setge int %A, 3
+	%D = and bool %B, %C   ;; False
+	ret bool %D
+}
+
+bool %test23(int %A) {
+	%B = setgt int %A, 1
+	%C = setle int %A, 2
+	%D = and bool %B, %C   ;; A == 2
+	ret bool %D
+}
+
+bool %test24(int %A) {
+	%B = setgt int %A, 1
+	%C = setne int %A, 2
+	%D = and bool %B, %C   ;; A > 2
+	ret bool %D
+}
+
+bool %test25(int %A) {
+	%B = setge int %A, 50
+	%C = setlt int %A, 100
+	%D = and bool %B, %C   ;; (A-50) <u 50
+	ret bool %D
+}
+
+bool %test26(int %A) {
+        %B = setne int %A, 50
+        %C = setne int %A, 51
+        %D = and bool %B, %C   ;; (A-50) > 1
+        ret bool %D
+}
+






More information about the llvm-commits mailing list