Add test for: (A|B)^B == A & (~B)

llvm-svn: 5727
This commit is contained in:
Chris Lattner 2003-03-10 18:24:04 +00:00
parent 87301bce1b
commit 96c4dd94ef
1 changed files with 6 additions and 0 deletions

View File

@ -69,3 +69,9 @@ int %test12(int %A) { ; A | ~A == -1
%B = or int %A, %NotA
ret int %B
}
uint %test13(uint %A) { ; (A|B)^B == A & (~B)
%t1 = or uint %A, 123
%r = xor uint %t1, 123
ret uint %r
}