diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-05 01:05:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-05 01:05:22 +0000 |
commit | 9716eb7676503d35e0542310f270ce954284b320 (patch) | |
tree | 487705b2d394b2c9739ef3bc725d22cf2bbd534c /test/Transforms/InstCombine | |
parent | 2fa8212a7a7fc089751831a046ab4798a7dabba7 (diff) | |
download | llvm-9716eb7676503d35e0542310f270ce954284b320.tar.gz llvm-9716eb7676503d35e0542310f270ce954284b320.tar.bz2 llvm-9716eb7676503d35e0542310f270ce954284b320.tar.xz |
New testcase for the other side
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine')
-rw-r--r-- | test/Transforms/InstCombine/xor.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/xor.ll b/test/Transforms/InstCombine/xor.ll index 6516a9f0a2..172da6062f 100644 --- a/test/Transforms/InstCombine/xor.ll +++ b/test/Transforms/InstCombine/xor.ll @@ -116,3 +116,9 @@ uint %test17(uint %A) { ; ~(c-X) == X-(c-1) == X+(-c+1) %C = xor uint %B, 4294967295 ret uint %C } + +uint %test18(uint %A) { ; C - ~X == X + (1+C) + %B = xor uint %A, 4294967295; -~X == 0 - ~X == X+1 + %C = sub uint 123, %B + ret uint %C +} |