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

Chris Lattner lattner at cs.uiuc.edu
Thu May 5 21:53:08 PDT 2005



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

and.ll updated: 1.27 -> 1.28
---
Log message:

new testcases


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

 and.ll |   14 ++++++++++++++
 1 files changed, 14 insertions(+)


Index: llvm/test/Regression/Transforms/InstCombine/and.ll
diff -u llvm/test/Regression/Transforms/InstCombine/and.ll:1.27 llvm/test/Regression/Transforms/InstCombine/and.ll:1.28
--- llvm/test/Regression/Transforms/InstCombine/and.ll:1.27	Thu May  5 20:52:52 2005
+++ llvm/test/Regression/Transforms/InstCombine/and.ll	Thu May  5 23:52:46 2005
@@ -197,3 +197,17 @@
 	%Z = and int %Y, 1
 	ret int %Z
 }
+
+uint %test31(bool %X) {
+	%Y = cast bool %X to uint
+	%Z = shl uint %Y, ubyte 4
+	%A = and uint %Z, 16
+	ret uint %A
+}
+
+uint %test32(uint %In) {
+	%Y = and uint %In, 16
+	%Z = shr uint %Y, ubyte 2
+	%A = and uint %Z, 1
+	ret uint %A
+}






More information about the llvm-commits mailing list