1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 06:22:56 +02:00

xor x, ALLONES should -> not x

llvm-svn: 3285
This commit is contained in:
Chris Lattner 2002-08-09 23:34:39 +00:00
parent 531bdf1aaf
commit e74955adc5

View File

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