diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-10-29 14:38:33 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-10-29 14:38:33 +0200 |
| commit | 5d29afb530ffdaab4b5032b7422da988b31c0867 (patch) | |
| tree | 0135976b951fa4c860a043f07e6d555e40c60d1f /tdump/tests/labels.t | |
| parent | 80d78c5589d42f81b04e671b28c103a2112458d1 (diff) | |
| download | tri-5d29afb530ffdaab4b5032b7422da988b31c0867.tar.gz tri-5d29afb530ffdaab4b5032b7422da988b31c0867.zip | |
initial working compiled program on simulator
Diffstat (limited to 'tdump/tests/labels.t')
| -rw-r--r-- | tdump/tests/labels.t | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tdump/tests/labels.t b/tdump/tests/labels.t new file mode 100644 index 0000000..5ad0d42 --- /dev/null +++ b/tdump/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 |
