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/09-call-function-3.retrolix

23 lines
416 B
Text
Raw Permalink Normal View History

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