[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/and.ll or.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Jul 23 12:57:01 PDT 2003
Changes in directory llvm/test/Regression/Transforms/InstCombine:
and.ll updated: 1.10 -> 1.11
or.ll updated: 1.16 -> 1.17
---
Log message:
New testcase
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/InstCombine/and.ll
diff -u llvm/test/Regression/Transforms/InstCombine/and.ll:1.10 llvm/test/Regression/Transforms/InstCombine/and.ll:1.11
--- llvm/test/Regression/Transforms/InstCombine/and.ll:1.10 Tue Jul 22 16:44:06 2003
+++ llvm/test/Regression/Transforms/InstCombine/and.ll Wed Jul 23 12:56:34 2003
@@ -58,3 +58,10 @@
%C = cast uint %B to bool
ret bool %C
}
+
+uint %test10(uint %A) {
+ %B = and uint %A, 12
+ %C = xor uint %B, 15
+ %D = and uint %C, 1
+ ret uint %D
+}
Index: llvm/test/Regression/Transforms/InstCombine/or.ll
diff -u llvm/test/Regression/Transforms/InstCombine/or.ll:1.16 llvm/test/Regression/Transforms/InstCombine/or.ll:1.17
--- llvm/test/Regression/Transforms/InstCombine/or.ll:1.16 Wed Jul 23 12:25:55 2003
+++ llvm/test/Regression/Transforms/InstCombine/or.ll Wed Jul 23 12:56:34 2003
@@ -117,3 +117,15 @@
%C = seteq ubyte %B, 34
ret bool %C
}
+
+
+bool %test20(int %A) {
+ %B = xor int %A, -1
+ %C = and int %B, 4
+ %D = setne int %C, 0
+ %E = and int %B, 123 ; Make the usecount of B = 2
+ %F = cast int %E to bool
+ %G = and bool %D, %F
+ ret bool %G
+}
+
More information about the llvm-commits
mailing list