mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
New testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d741bcfa16
commit
c6da691cfe
@ -100,3 +100,16 @@ bool %test15(uint %A, uint %B) {
|
||||
ret bool %D
|
||||
}
|
||||
|
||||
int %test16(int %A) {
|
||||
%B = and int %A, 1
|
||||
%C = and int %A, -2 ; -2 = ~1
|
||||
%D = or int %B, %C ; %D = and int %B, -1 == %B
|
||||
ret int %D
|
||||
}
|
||||
|
||||
int %test17(int %A) {
|
||||
%B = and int %A, 1
|
||||
%C = and int %A, 4
|
||||
%D = or int %B, %C ; %D = and int %B, 5
|
||||
ret int %D
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user