diff options
author | Chris Lattner <sabre@nondot.org> | 2003-03-10 18:24:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-03-10 18:24:04 +0000 |
commit | 63a95485912c9926c867e0514b889ab7c43ee5b2 (patch) | |
tree | 44dc899d09bf2ad9e45b73922ca824e05eab9737 | |
parent | a66e2fa195cd6fc658a3a2f5fc2ebd74130bc6cd (diff) |
Add test for: (A|B)^B == A & (~B)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5727 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/InstCombine/or.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll index 3358715d1f..5523f87c4e 100644 --- a/test/Transforms/InstCombine/or.ll +++ b/test/Transforms/InstCombine/or.ll @@ -69,3 +69,9 @@ int %test12(int %A) { ; A | ~A == -1 %B = or int %A, %NotA ret int %B } + +uint %test13(uint %A) { ; (A|B)^B == A & (~B) + %t1 = or uint %A, 123 + %r = xor uint %t1, 123 + ret uint %r +} |