From 4b9e14ef40c43cf6486ab696c8f248e7550f3e09 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 9 Apr 2004 23:47:52 +0000 Subject: [PATCH] Another testcase llvm-svn: 12802 --- test/Regression/Transforms/InstCombine/add.ll | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/Regression/Transforms/InstCombine/add.ll b/test/Regression/Transforms/InstCombine/add.ll index af985f2b3ba..e7548fb81b5 100644 --- a/test/Regression/Transforms/InstCombine/add.ll +++ b/test/Regression/Transforms/InstCombine/add.ll @@ -116,3 +116,11 @@ ubyte %test18(ubyte %A) { %C = add ubyte %B, 17 ; == sub ubyte 16, %A ret ubyte %C } + +int %test19(bool %C) { + %A = select bool %C, int 1000, int 10 + %V = add int %A, 123 + ret int %V +} + +