summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/select.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-23 15:31:03 +0000
committerChris Lattner <sabre@nondot.org>2005-04-23 15:31:03 +0000
commit17ce8d22c32bb1b12c767b83fea011dae2d816d3 (patch)
treeab7bf74ca5c3b16e91e31da623c5303be43b2fec /test/Transforms/InstCombine/select.ll
parent3952bc6f39472cf9007ce2dfd5ff1ff5fdcd8bd2 (diff)
downloadllvm-17ce8d22c32bb1b12c767b83fea011dae2d816d3.tar.gz
llvm-17ce8d22c32bb1b12c767b83fea011dae2d816d3.tar.bz2
llvm-17ce8d22c32bb1b12c767b83fea011dae2d816d3.tar.xz
add a new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21469 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/select.ll')
-rw-r--r--test/Transforms/InstCombine/select.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/select.ll b/test/Transforms/InstCombine/select.ll
index 0be572577c..843af1dbcd 100644
--- a/test/Transforms/InstCombine/select.ll
+++ b/test/Transforms/InstCombine/select.ll
@@ -142,3 +142,9 @@ int %test16(bool %C, int* %P) {
%V = load int* %P2
ret int %V
}
+
+bool %test17(int* %X, bool %C) {
+ %R = select bool %C, int* %X, int* null
+ %RV = seteq int* %R, null
+ ret bool %RV
+}