summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-09 04:23:57 +0000
committerChris Lattner <sabre@nondot.org>2004-06-09 04:23:57 +0000
commit4561db2edcecf3ecea8e13b5ebba2a6650a0e11f (patch)
treeb334a1e6eb00b351f0ea97acb81dc6437f0886c6 /test
parentaab3aff97bc536dca831b45a3a4dc541ae2b51fc (diff)
downloadllvm-4561db2edcecf3ecea8e13b5ebba2a6650a0e11f.tar.gz
llvm-4561db2edcecf3ecea8e13b5ebba2a6650a0e11f.tar.bz2
llvm-4561db2edcecf3ecea8e13b5ebba2a6650a0e11f.tar.xz
New testcase for the instruction combiner that happen often in the Java FE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/select.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/select.ll b/test/Transforms/InstCombine/select.ll
index d3a880d607..891f057d57 100644
--- 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
+}
+