From e14a9a71d3dcf68e84fe3e609fc8f9a1e7ba4832 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 29 Sep 2004 05:06:12 +0000 Subject: [PATCH] New testcases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16581 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/add.ll | 14 ++++++++++++++ test/Transforms/InstCombine/set.ll | 13 +++++++++++++ 2 files changed, 27 insertions(+) diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll index b8bab083b9f..80f7402af9d 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 +} + diff --git a/test/Transforms/InstCombine/set.ll b/test/Transforms/InstCombine/set.ll index 762ca6c0096..9ade443c0cb 100644 --- a/test/Transforms/InstCombine/set.ll +++ b/test/Transforms/InstCombine/set.ll @@ -87,3 +87,16 @@ bool %test17(ubyte %A) { ret bool %C } +bool %test18(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 = setlt int %b.0, 123 + ret bool %tmp.4 +} + -- 2.34.1