summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/xor.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/xor.ll')
-rw-r--r--test/Transforms/InstCombine/xor.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/xor.ll b/test/Transforms/InstCombine/xor.ll
index 8b1e193e24..57ba596421 100644
--- a/test/Transforms/InstCombine/xor.ll
+++ b/test/Transforms/InstCombine/xor.ll
@@ -146,3 +146,11 @@ int %test21(bool %C, int %A, int %B) {
%D = select bool %C2, int %A, int %B
ret int %D
}
+
+int %test22(bool %X) {
+ %Y = xor bool %X, true
+ %Z = cast bool %Y to int
+ %Q = xor int %Z, 1
+ ret int %Q
+}
+