mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
new testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21716 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d7115b01a0
commit
5962b3b0bf
@ -197,3 +197,17 @@ int %test30(bool %X) {
|
||||
%Z = and int %Y, 1
|
||||
ret int %Z
|
||||
}
|
||||
|
||||
uint %test31(bool %X) {
|
||||
%Y = cast bool %X to uint
|
||||
%Z = shl uint %Y, ubyte 4
|
||||
%A = and uint %Z, 16
|
||||
ret uint %A
|
||||
}
|
||||
|
||||
uint %test32(uint %In) {
|
||||
%Y = and uint %In, 16
|
||||
%Z = shr uint %Y, ubyte 2
|
||||
%A = and uint %Z, 1
|
||||
ret uint %A
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user