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
This commit is contained in:
Chris Lattner 2003-11-04 23:49:53 +00:00
parent d5e4918fa7
commit 519c6965f5

View File

@ -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
}