From 5128d2323f26233f0cfddcd4358d0659f8aa3331 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 4 Mar 2006 06:02:36 +0000 Subject: [PATCH] new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26518 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/add.ll | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll index 3de3f333102..52dfc39ef4c 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 +}