summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/xor.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-06 04:11:32 +0000
committerChris Lattner <sabre@nondot.org>2005-05-06 04:11:32 +0000
commit1b50d062c8aedac8def0f6edd542b27feaad7ff7 (patch)
treef4a4db4aa27dbfed7790c235d70de3956dec1615 /test/Transforms/InstCombine/xor.ll
parent7aed7ac5e1767c48941040fabdf2fc8238cdde5b (diff)
downloadllvm-1b50d062c8aedac8def0f6edd542b27feaad7ff7.tar.gz
llvm-1b50d062c8aedac8def0f6edd542b27feaad7ff7.tar.bz2
llvm-1b50d062c8aedac8def0f6edd542b27feaad7ff7.tar.xz
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21714 91177308-0d34-0410-b5e6-96231b3b80d8
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
+}
+