projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Another testcase
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
add.ll
diff --git
a/test/Transforms/InstCombine/add.ll
b/test/Transforms/InstCombine/add.ll
index af985f2b3ba68573fbbc41aa9d8cc0e9ffdd1960..e7548fb81b53eee1b2134d56128eae0547c6b18f 100644
(file)
--- 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
}
%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
+}
+
+