This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues or pull requests.
compilation/flap/tests/06-Retrolix_to_x86-64/08-use-locals.retrolix

20 lines
336 B
Text
Raw Normal View History

external printf
def print_two_int ()
local a1, a2:
rax: a1 <- copy %rdi;
rbx: a2 <- copy %rsi;
l10: %rdi <- copy "%d %d\n";
l11: %rsi <- copy a1;
l12: %rdx <- copy a2;
l13: %rax <- copy 0;
l14: printf();
l15: ret;
end
globals (x)
l01: %rdi <- copy 37;
l02: %rsi <- copy 73;
l03: print_two_int();
l04: exit;
end