mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 02:31:09 +00:00
Add test for longs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5246 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6442a3eaae
commit
e1ac72a68c
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
void %test(sbyte* %P, short* %P, int* %P) {
|
void %test(sbyte* %P, short* %P, int* %P, long* %P) {
|
||||||
%V = load sbyte* %P
|
%V = load sbyte* %P
|
||||||
store sbyte %V, sbyte* %P
|
store sbyte %V, sbyte* %P
|
||||||
|
|
||||||
@ -8,6 +8,10 @@ void %test(sbyte* %P, short* %P, int* %P) {
|
|||||||
|
|
||||||
%V = load int* %P
|
%V = load int* %P
|
||||||
store int %V, int* %P
|
store int %V, int* %P
|
||||||
|
|
||||||
|
%V = load long* %P
|
||||||
|
store long %V, long* %P
|
||||||
|
|
||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -22,7 +26,8 @@ int %main() {
|
|||||||
%A = alloca sbyte
|
%A = alloca sbyte
|
||||||
%B = alloca short
|
%B = alloca short
|
||||||
%C = alloca int
|
%C = alloca int
|
||||||
call void %test(sbyte* %A, short* %B, int* %C)
|
%D = alloca long
|
||||||
|
call void %test(sbyte* %A, short* %B, int* %C, long* %D)
|
||||||
call uint %varalloca(uint 7)
|
call uint %varalloca(uint 7)
|
||||||
|
|
||||||
ret int 0
|
ret int 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user