summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-08 03:41:59 +0000
committerChris Lattner <sabre@nondot.org>2004-10-08 03:41:59 +0000
commitd74634a885efdc8e509737e553a906b04a991575 (patch)
tree1a245ce478bf70620b4bea389068560b4380e32e /test
parentbdf69847a9448dc64c6aae9abacf65822af016eb (diff)
downloadllvm-d74634a885efdc8e509737e553a906b04a991575.tar.gz
llvm-d74634a885efdc8e509737e553a906b04a991575.tar.bz2
llvm-d74634a885efdc8e509737e553a906b04a991575.tar.xz
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/add.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll
index 80f7402af9..6359dde0bf 100644
--- a/test/Transforms/InstCombine/add.ll
+++ b/test/Transforms/InstCombine/add.ll
@@ -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
+}