diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-04 23:49:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-04 23:49:53 +0000 |
commit | 519c6965f5bfe025634a7859ff8e609ef9836bb0 (patch) | |
tree | c525ef6b1c4c1b1f0b356ee2e1221c6d38573923 /test/Transforms/InstCombine/xor.ll | |
parent | d5e4918fa77bf413b020735fa81fc160b43a5d0c (diff) | |
download | llvm-519c6965f5bfe025634a7859ff8e609ef9836bb0.tar.gz llvm-519c6965f5bfe025634a7859ff8e609ef9836bb0.tar.bz2 llvm-519c6965f5bfe025634a7859ff8e609ef9836bb0.tar.xz |
Since we're in the neighborhood, test for the inverse
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/xor.ll')
-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 0cbd1320d3..6516a9f0a2 100644 --- a/test/Transforms/InstCombine/xor.ll +++ b/test/Transforms/InstCombine/xor.ll @@ -110,3 +110,9 @@ uint %test16(uint %A) { ; ~(X+c) == (-c-1)-X %C = xor uint %B, 4294967295 ret uint %C } + +uint %test17(uint %A) { ; ~(c-X) == X-(c-1) == X+(-c+1) + %B = sub uint 123, %A + %C = xor uint %B, 4294967295 + ret uint %C +} |