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 | f6368c803c24b84ddf87bdb3c1e80909e35733ad (patch) | |
| tree | 7f8ce8977f2315b4bddf9ee78a0a1406ef54a358 /llvm | |
| parent | d6a5d90ae2b92c30196e8f3de945b55543b72446 (diff) | |
| download | bcm5719-llvm-f6368c803c24b84ddf87bdb3c1e80909e35733ad.tar.gz bcm5719-llvm-f6368c803c24b84ddf87bdb3c1e80909e35733ad.zip | |
Since we're in the neighborhood, test for the inverse
llvm-svn: 9710
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/Regression/Transforms/InstCombine/xor.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/xor.ll b/llvm/test/Regression/Transforms/InstCombine/xor.ll index 0cbd1320d36..6516a9f0a28 100644 --- a/llvm/test/Regression/Transforms/InstCombine/xor.ll +++ b/llvm/test/Regression/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 +} |

