aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-06 04:52:46 +0000
committerChris Lattner <sabre@nondot.org>2005-05-06 04:52:46 +0000
commit5962b3b0bf3c74ef715c666f6080cf4cfee58ea0 (patch)
tree3d88b06590a262601363e602fcfbe932f7038a6f
parentd7115b01a04ed8dd95b78c0d3c5ac0653c704508 (diff)
new testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21716 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/InstCombine/and.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/and.ll b/test/Transforms/InstCombine/and.ll
index e8558f7d90..81cd325c3f 100644
--- a/test/Transforms/InstCombine/and.ll
+++ b/test/Transforms/InstCombine/and.ll
@@ -197,3 +197,17 @@ int %test30(bool %X) {
%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
+}