New testcase
authorChris Lattner <sabre@nondot.org>
Wed, 23 Jul 2003 17:56:34 +0000 (17:56 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 23 Jul 2003 17:56:34 +0000 (17:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7261 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/and.ll
test/Transforms/InstCombine/or.ll

index 23a20fd46f256ed566f898c0e1b3569e64d5a3e1..e0c4d180e18c17101469f32a41feeaecb7f54a98 100644 (file)
@@ -58,3 +58,10 @@ bool %test9(uint %A) {
        %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 e89009547ba8f9a0edca42a8884a5fcb4187228d..0ffc8e1870d275494c08d9c921e2d60ba20c8bee 100644 (file)
@@ -117,3 +117,15 @@ bool %test19(ubyte %A) {
        %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
+}
+