New testcase
authorChris Lattner <sabre@nondot.org>
Fri, 8 Oct 2004 03:41:59 +0000 (03:41 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 8 Oct 2004 03:41:59 +0000 (03:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16833 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/add.ll

index 80f7402af9dcac9b3a7dd29708cfcb2f6830b898..6359dde0bf2123765e8ff2673a3009c5a419ad2e 100644 (file)
@@ -163,3 +163,9 @@ endif:
         ret int %tmp.4
 }
 
+int %test24(int %A) {
+       %B = add int %A, 1
+       %C = shl int %B, ubyte 1
+       %D = sub int %C, 2
+       ret int %D             ;; A << 1
+}