mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Add testcases for simple things we can handle that occur now in vortex.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18837 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
60bdce6fd0
commit
cb8e9c94ff
@ -55,3 +55,9 @@ bool %test9(ubyte %A) {
|
||||
ret bool %C
|
||||
}
|
||||
|
||||
uint %test10(uint %X, bool %C) {
|
||||
%V = select bool %C, uint 64, uint 8
|
||||
%R = div uint %X, %V
|
||||
ret uint %R
|
||||
}
|
||||
|
||||
|
@ -25,3 +25,9 @@ bool %test3(int %A) {
|
||||
%C = setne int %B, 0
|
||||
ret bool %C
|
||||
}
|
||||
|
||||
uint %test4(uint %X, bool %C) {
|
||||
%V = select bool %C, uint 1, uint 8
|
||||
%R = rem uint %X, %V
|
||||
ret uint %R
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user