mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-01 12:24:24 +00:00
Add new testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8816 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -105,3 +105,14 @@ ubyte %test16(ubyte %A) {
|
|||||||
ret ubyte %C
|
ret ubyte %C
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int %test17(int %A) {
|
||||||
|
%B = xor int %A, -1
|
||||||
|
%C = add int %B, 1 ; == sub int 0, %A
|
||||||
|
ret int %C
|
||||||
|
}
|
||||||
|
|
||||||
|
ubyte %test18(ubyte %A) {
|
||||||
|
%B = xor ubyte %A, 255
|
||||||
|
%C = add ubyte %B, 17 ; == sub ubyte 16, %A
|
||||||
|
ret ubyte %C
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user