forked from OSchip/llvm-project
New testcase for masking operation that frequently occurs in the pool allocator
for converting a number that is a power of two into a mask llvm-svn: 9706
This commit is contained in:
parent
20d03bb166
commit
f622d7c31e
|
@ -98,3 +98,9 @@ bool %test14(ubyte %A, ubyte %B) {
|
|||
%E = xor bool %C, %D ; E = true
|
||||
ret bool %E
|
||||
}
|
||||
|
||||
uint %test15(uint %A) { ; ~(X-1) == -X
|
||||
%B = add uint %A, 4294967295
|
||||
%C = xor uint %B, 4294967295
|
||||
ret uint %C
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue