[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/and.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Sep 19 14:05:02 PDT 2003
Changes in directory llvm/test/Regression/Transforms/InstCombine:
and.ll updated: 1.17 -> 1.18
---
Log message:
Two new tests for shifts followed by ands
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/InstCombine/and.ll
diff -u llvm/test/Regression/Transforms/InstCombine/and.ll:1.17 llvm/test/Regression/Transforms/InstCombine/and.ll:1.18
--- llvm/test/Regression/Transforms/InstCombine/and.ll:1.17 Tue Sep 16 10:29:34 2003
+++ llvm/test/Regression/Transforms/InstCombine/and.ll Fri Sep 19 14:04:43 2003
@@ -93,3 +93,15 @@
%C = setne ubyte %B, 0
ret bool %C
}
+
+ubyte %test15(ubyte %A) {
+ %B = shr ubyte %A, ubyte 7
+ %C = and ubyte %B, 2 ; Always equals zero
+ ret ubyte %C
+}
+
+ubyte %test16(ubyte %A) {
+ %B = shl ubyte %A, ubyte 2
+ %C = and ubyte %B, 3
+ ret ubyte %C
+}
More information about the llvm-commits
mailing list