aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-10 22:21:14 +0000
committerChris Lattner <sabre@nondot.org>2004-04-10 22:21:14 +0000
commitfb384a15fff3d910e4cc5ff8fcd083f76c5dfd70 (patch)
tree63878d0821f5a2854785e776e8e53f98c56bb919 /test/Transforms/InstCombine
parent66331a4e3312af6cc07b8c583565cc53d5b1516a (diff)
downloadexternal_llvm-fb384a15fff3d910e4cc5ff8fcd083f76c5dfd70.zip
external_llvm-fb384a15fff3d910e4cc5ff8fcd083f76c5dfd70.tar.gz
external_llvm-fb384a15fff3d910e4cc5ff8fcd083f76c5dfd70.tar.bz2
New testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12820 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine')
-rw-r--r--test/Transforms/InstCombine/select.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/select.ll b/test/Transforms/InstCombine/select.ll
index e89c252..d3a880d 100644
--- a/test/Transforms/InstCombine/select.ll
+++ b/test/Transforms/InstCombine/select.ll
@@ -79,3 +79,20 @@ int %test12b(bool %cond, int %a) {
ret int %c
}
+int %test13(int %a, int %b) {
+ %C = seteq int %a, %b
+ %V = select bool %C, int %a, int %b
+ ret int %V
+}
+
+int %test13a(int %a, int %b) {
+ %C = setne int %a, %b
+ %V = select bool %C, int %a, int %b
+ ret int %V
+}
+
+int %test13b(int %a, int %b) {
+ %C = seteq int %a, %b
+ %V = select bool %C, int %b, int %a
+ ret int %V
+}