mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Initial revision
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
16
test/Feature/calltest.ll
Normal file
16
test/Feature/calltest.ll
Normal file
@@ -0,0 +1,16 @@
|
||||
implementation
|
||||
|
||||
; Bytecode gets a constant pool block, that constains:
|
||||
; type plane: int(int)
|
||||
|
||||
int "main"(int %argc) ; TODO: , sbyte **argv, sbyte **envp)
|
||||
begin
|
||||
%retval = call int (int) %test(int %argc)
|
||||
%two = add int %retval, %retval
|
||||
ret int %two
|
||||
end
|
||||
|
||||
int "test"(int %i0)
|
||||
begin
|
||||
ret int %i0
|
||||
end
|
Reference in New Issue
Block a user