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

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 12 14:11:02 PDT 2003


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

or.ll updated: 1.25 -> 1.26

---
Log message:

New testcases


---
Diffs of the changes:

Index: llvm/test/Regression/Transforms/InstCombine/or.ll
diff -u llvm/test/Regression/Transforms/InstCombine/or.ll:1.25 llvm/test/Regression/Transforms/InstCombine/or.ll:1.26
--- llvm/test/Regression/Transforms/InstCombine/or.ll:1.25	Thu Jul 24 14:44:51 2003
+++ llvm/test/Regression/Transforms/InstCombine/or.ll	Tue Aug 12 14:10:50 2003
@@ -100,3 +100,16 @@
         ret bool %D
 }
 
+int %test16(int %A) {
+	%B = and int %A, 1
+	%C = and int %A, -2       ; -2 = ~1
+	%D = or int %B, %C        ; %D = and int %B, -1 == %B
+	ret int %D
+}
+
+int %test17(int %A) {
+	%B = and int %A, 1
+	%C = and int %A, 4
+	%D = or int %B, %C        ; %D = and int %B, 5
+	ret int %D
+}





More information about the llvm-commits mailing list