summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/add.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-09 23:47:52 +0000
committerChris Lattner <sabre@nondot.org>2004-04-09 23:47:52 +0000
commit7c4865dfff0cb53c6b2151d1bc3b32e038c2723e (patch)
treeec2040b3d08e1d7cd01612524974f79687d0bc5b /test/Transforms/InstCombine/add.ll
parent1c4852733067c93867693119b7caa5938b8ced50 (diff)
downloadllvm-7c4865dfff0cb53c6b2151d1bc3b32e038c2723e.tar.gz
llvm-7c4865dfff0cb53c6b2151d1bc3b32e038c2723e.tar.bz2
llvm-7c4865dfff0cb53c6b2151d1bc3b32e038c2723e.tar.xz
Another testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/add.ll')
-rw-r--r--test/Transforms/InstCombine/add.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll
index af985f2b3b..e7548fb81b 100644
--- a/test/Transforms/InstCombine/add.ll
+++ b/test/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
+}
+
+