aboutsummaryrefslogtreecommitdiff
path: root/tasm/tests/labels.t
diff options
context:
space:
mode:
Diffstat (limited to 'tasm/tests/labels.t')
-rw-r--r--tasm/tests/labels.t13
1 files changed, 13 insertions, 0 deletions
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