new testcase
authorChris Lattner <sabre@nondot.org>
Sun, 18 Sep 2005 04:22:59 +0000 (04:22 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 18 Sep 2005 04:22:59 +0000 (04:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23378 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/add.ll

index f06109342cee1bd11c85f9bf5e253c24d015908f..8a84863c2e1d0179116aaa62f4d1612a6f165792 100644 (file)
@@ -196,3 +196,13 @@ int %test28(int %X) {
        %Z = sub int 42, %Y
        ret int %Z
 }
+
+uint %test29(uint %X, uint %x) {
+       %tmp.2 = sub uint %X, %x
+        %tmp.2.mask = and uint %tmp.2, 63               ; <uint> [#uses=1]
+        %tmp.6 = add uint %tmp.2.mask, %x               ; <uint> [#uses=1]
+        %tmp.7 = and uint %tmp.6, 63            ; <uint> [#uses=1]
+        %tmp.9 = and uint %tmp.2, 4294967232            ; <uint> [#uses=1]
+        %tmp.10 = or uint %tmp.7, %tmp.9                ; <uint> [#uses=1]
+       ret uint %tmp.10
+}