mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9706 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -98,3 +98,9 @@ bool %test14(ubyte %A, ubyte %B) {
|
|||||||
%E = xor bool %C, %D ; E = true
|
%E = xor bool %C, %D ; E = true
|
||||||
ret bool %E
|
ret bool %E
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint %test15(uint %A) { ; ~(X-1) == -X
|
||||||
|
%B = add uint %A, 4294967295
|
||||||
|
%C = xor uint %B, 4294967295
|
||||||
|
ret uint %C
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user