mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
New testcase for the other side
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9714 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -116,3 +116,9 @@ uint %test17(uint %A) { ; ~(c-X) == X-(c-1) == X+(-c+1)
|
|||||||
%C = xor uint %B, 4294967295
|
%C = xor uint %B, 4294967295
|
||||||
ret uint %C
|
ret uint %C
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint %test18(uint %A) { ; C - ~X == X + (1+C)
|
||||||
|
%B = xor uint %A, 4294967295; -~X == 0 - ~X == X+1
|
||||||
|
%C = sub uint 123, %B
|
||||||
|
ret uint %C
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user