aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/setcc-strength-reduce.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/setcc-strength-reduce.ll b/test/Transforms/InstCombine/setcc-strength-reduce.ll
index 1018ca5b6e..375dac6071 100644
--- a/test/Transforms/InstCombine/setcc-strength-reduce.ll
+++ b/test/Transforms/InstCombine/setcc-strength-reduce.ll
@@ -22,3 +22,13 @@ bool "test3"(sbyte %A) {
%B = setge sbyte %A, -127 ; setne %A, -128
ret bool %B
}
+
+bool %test4(sbyte %A) {
+ %B = setle sbyte %A, 126 ; setne %A, 127
+ ret bool %B
+}
+
+bool %test5(sbyte %A) {
+ %B = setlt sbyte %A, 127 ; setne %A, 127
+ ret bool %B
+}