aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}
+