xor x, ALLONES should -> not x

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3285 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-08-09 23:34:39 +00:00
parent 22fae29835
commit 42dbd3044c

View File

@ -48,6 +48,11 @@ int "test8"(int %A) {
ret int %B
}
int %testXOR9(int %A) {
%B = xor int %A, -1
ret int %B
}
bool "test9"(bool %A) {
%B = or bool %A, %A
ret bool %B
@ -58,5 +63,8 @@ int "test10"(int %A) {
ret int %B
}
bool %test11(bool %A) {
%B = xor bool %A, true
ret bool %B
}