aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/or.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll
index f4f360df72..e01bb11bf5 100644
--- a/test/Transforms/InstCombine/or.ll
+++ b/test/Transforms/InstCombine/or.ll
@@ -105,3 +105,13 @@ ubyte %test17(ubyte %A, ubyte %B) { ; Test that (A|c1)|(B|c2) == (A|B)|(c1|c2)
%E = or ubyte %C, %D
ret ubyte %E
}
+
+ubyte %test18(bool %c) {
+ %d = xor bool %c, true ; invert the condition
+ br bool %d, label %True, label %False
+True:
+ ret ubyte 1
+False:
+ ret ubyte 3
+}
+