aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/or.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll
index 24c451e1c6..c4a62283f3 100644
--- a/test/Transforms/InstCombine/or.ll
+++ b/test/Transforms/InstCombine/or.ll
@@ -86,3 +86,10 @@ uint %test13(uint %A) {
ret uint %C
}
+bool %test14(uint %A, uint %B) {
+ %C1 = setlt uint %A, %B
+ %C2 = setgt uint %A, %B
+ %D = or bool %C1, %C2 ; (A < B) | (A > B) === A != B
+ ret bool %D
+}
+