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

test/Transforms/InstCombine/and.ll

index 8e33a7dda5a45697d1b6d79758996b24ee13de73..3eeac3b17f5320ca984ba9af338414754868ad48 100644 (file)
@@ -65,3 +65,13 @@ uint %test10(uint %A) {
        %D = and uint %C, 1   ; (X ^ C1) & C2 --> (X & C2) ^ (C1&C2)
        ret uint %D
 }
+
+uint %test11(uint %A, uint* %P) {
+       %B = or uint %A, 3
+       %C = xor uint %B, 12
+       store uint %C, uint* %P    ; additional use of C
+       %D = and uint %C, 3        ; %C = and uint %B, 3 --> 3
+       ret uint %D
+}
+
+