mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 14:10:41 +00:00
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:
parent
8709927af8
commit
a783c02749
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user