diff options
author | Chris Lattner <sabre@nondot.org> | 2004-09-29 05:06:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-09-29 05:06:12 +0000 |
commit | e14a9a71d3dcf68e84fe3e609fc8f9a1e7ba4832 (patch) | |
tree | 303af765f5f1b5d796167a7e8847d6dbe59342ee /test/Transforms/InstCombine/add.ll | |
parent | 1f49e868aad763540be5e2076b5af6dbff5bf1c1 (diff) | |
download | llvm-e14a9a71d3dcf68e84fe3e609fc8f9a1e7ba4832.tar.gz llvm-e14a9a71d3dcf68e84fe3e609fc8f9a1e7ba4832.tar.bz2 llvm-e14a9a71d3dcf68e84fe3e609fc8f9a1e7ba4832.tar.xz |
New testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/add.ll')
-rw-r--r-- | test/Transforms/InstCombine/add.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll index b8bab083b9..80f7402af9 100644 --- a/test/Transforms/InstCombine/add.ll +++ b/test/Transforms/InstCombine/add.ll @@ -149,3 +149,17 @@ Lab1: Lab2: ret int 1231231 } + +int %test23(bool %C, int %a) { +entry: + br bool %C, label %endif, label %else + +else: + br label %endif + +endif: + %b.0 = phi int [ 0, %entry ], [ 1, %else ] + %tmp.4 = add int %b.0, 1 + ret int %tmp.4 +} + |