summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/Regression/Transforms/InstCombine/select.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/select.ll b/llvm/test/Regression/Transforms/InstCombine/select.ll
index e89c25250f0..d3a880d607b 100644
--- a/llvm/test/Regression/Transforms/InstCombine/select.ll
+++ b/llvm/test/Regression/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
+}
OpenPOWER on IntegriCloud