From 8153447847aeaa0e1181cf62579cc3264ba44a8b Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 28 Oct 2023 11:48:28 +0300 Subject: add initial relocation stuff --- tasm/tests/labels.t | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tasm/tests/labels.t (limited to 'tasm/tests') diff --git a/tasm/tests/labels.t b/tasm/tests/labels.t new file mode 100644 index 0000000..5ad0d42 --- /dev/null +++ b/tasm/tests/labels.t @@ -0,0 +1,13 @@ +start: + /* RELOC_LA */ + la x1, other_func + /* RELOC_B */ + beq x0, x0, other_func + +other_func: + /* RELOC_J */ + jal x0, final_func + jal x0, start + +final_func: + nop -- cgit v1.3