Test for xor chains

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11489 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-02-16 01:19:52 +00:00
parent 8709927af8
commit a783c02749

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
}