aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-04 06:02:36 +0000
committerChris Lattner <sabre@nondot.org>2006-03-04 06:02:36 +0000
commit5128d2323f26233f0cfddcd4358d0659f8aa3331 (patch)
tree91ef18e0244226e2481585a3739953fbafb2f5cb
parent62bec2ca4c227a61fd9a38b23da81035e83f5733 (diff)
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26518 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 3de3f33310..52dfc39ef4 100644
--- a/test/Transforms/InstCombine/add.ll
+++ b/test/Transforms/InstCombine/add.ll
@@ -213,3 +213,10 @@ long %test30(long %x) {
%tmp.4 = add long %tmp.2, -9223372036854775808
ret long %tmp.4
}
+
+int %test31(int %A) {
+ %B = add int %A, 4
+ %C = mul int %B, 5
+ %D = sub int %C, 20
+ ret int %D
+}