projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aab3aff
)
New testcase for the instruction combiner that happen often in the Java FE
author
Chris Lattner
<sabre@nondot.org>
Wed, 9 Jun 2004 04:23:57 +0000
(
04:23
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 9 Jun 2004 04:23:57 +0000
(
04:23
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14082
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/select.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/select.ll
b/test/Transforms/InstCombine/select.ll
index d3a880d607b67a14c52370ee5e1aa33fe0d90d38..891f057d57a434757c3981ee021fcfc4bc2922db 100644
(file)
--- a/
test/Transforms/InstCombine/select.ll
+++ b/
test/Transforms/InstCombine/select.ll
@@
-96,3
+96,16
@@
int %test13b(int %a, int %b) {
%V = select bool %C, int %b, int %a
ret int %V
}
+
+bool %test14a(bool %C, int %X) {
+ %V = select bool %C, int %X, int 0
+ %R = setlt int %V, 1 ; (X < 1) | !C
+ ret bool %R
+}
+
+bool %test14b(bool %C, int %X) {
+ %V = select bool %C, int 0, int %X
+ %R = setlt int %V, 1 ; (X < 1) | C
+ ret bool %R
+}
+