test: Add simple e2e test runner

This commit is contained in:
Laborratte 5 2025-05-12 18:30:22 +02:00
parent eb8cceacc4
commit 2d6c68b2ed
Signed by: Laborratte5
GPG key ID: 3A30072E35202C02
3 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,14 @@
.global main
.global _main
.text
main:
call _main
# move the return value into the first argument for the syscall
movq %rax, %rdi
# move the exit syscall number into rax
movq $0x3C, %rax
syscall
_main:
# your generated code here
mov $0,%0
ret