Test for xor chains

llvm-svn: 11489
This commit is contained in:
Chris Lattner 2004-02-16 01:19:52 +00:00
parent 5f25fb0dd7
commit 5c063c9348
1 changed files with 6 additions and 0 deletions

View File

@ -122,3 +122,9 @@ uint %test18(uint %A) { ; C - ~X == X + (1+C)
%C = sub uint 123, %B
ret uint %C
}
uint %test19(uint %A, uint %B) {
%C = xor uint %A, %B
%D = xor uint %C, %A ; A terms cancel, D = B
ret uint %D
}