New testcases
authorChris Lattner <sabre@nondot.org>
Sat, 10 Apr 2004 22:21:14 +0000 (22:21 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 10 Apr 2004 22:21:14 +0000 (22:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12820 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/select.ll

index e89c25250f0a0ee444f938cb7bda0b6fc5f820b1..d3a880d607b67a14c52370ee5e1aa33fe0d90d38 100644 (file)
@@ -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
+}