summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/xor.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-16 01:19:52 +0000
committerChris Lattner <sabre@nondot.org>2004-02-16 01:19:52 +0000
commita783c02749eb8aa1bc79248a622fd34faebe1b71 (patch)
tree987fecf8c754497c5a2dd3dbc480a72be56fc334 /test/Transforms/InstCombine/xor.ll
parent8709927af8095c58cf2147d6d83fed9b7821a508 (diff)
downloadllvm-a783c02749eb8aa1bc79248a622fd34faebe1b71.tar.gz
llvm-a783c02749eb8aa1bc79248a622fd34faebe1b71.tar.bz2
llvm-a783c02749eb8aa1bc79248a622fd34faebe1b71.tar.xz
Test for xor chains
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/xor.ll')
-rw-r--r--test/Transforms/InstCombine/xor.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/xor.ll b/test/Transforms/InstCombine/xor.ll
index 172da6062f..29f0f10fdd 100644
--- a/test/Transforms/InstCombine/xor.ll
+++ b/test/Transforms/InstCombine/xor.ll
@@ -122,3 +122,9 @@ uint %test18(uint %A) { ; C - ~X == X + (1+C)
%C = sub uint 123, %B
ret uint %C
}
+
+uint %test19(uint %A, uint %B) {
+ %C = xor uint %A, %B
+ %D = xor uint %C, %A ; A terms cancel, D = B
+ ret uint %D
+}