mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
9f1bd80102
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4915 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
328 B
LLVM
21 lines
328 B
LLVM
|
|
void %test(sbyte* %P, short* %P, int* %P) {
|
|
%V = load sbyte* %P
|
|
store sbyte %V, sbyte* %P
|
|
|
|
%V = load short* %P
|
|
store short %V, short* %P
|
|
|
|
%V = load int* %P
|
|
store int %V, int* %P
|
|
ret void
|
|
}
|
|
|
|
void %main() {
|
|
%A = alloca sbyte
|
|
%B = alloca short
|
|
%C = alloca int
|
|
call void %test(sbyte* %A, short* %B, int* %C)
|
|
ret void
|
|
}
|