aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-05 23:53:04 +0000
committerChris Lattner <sabre@nondot.org>2006-03-05 23:53:04 +0000
commit03182bfd89799e539abad52ec35a493da18f0484 (patch)
tree0687bb1f54e8faef44533a265b816d9023c41567
parenta93dfcd40a0750455d093903a9b65627c4e58a8e (diff)
new testcase I forgot to check in earlier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26565 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/InstCombine/add.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll
index 52dfc39ef4..81ab29a096 100644
--- a/test/Transforms/InstCombine/add.ll
+++ b/test/Transforms/InstCombine/add.ll
@@ -220,3 +220,10 @@ int %test31(int %A) {
%D = sub int %C, 20
ret int %D
}
+
+int %test32(int %A) {
+ %B = add int %A, 4
+ %C = shl int %B, ubyte 2
+ %D = sub int %C, 16
+ ret int %D
+}