summaryrefslogtreecommitdiff
path: root/riscv/test.s
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2025-07-10 22:18:39 +0200
committerCarlos Maiolino <[email protected]>2025-07-10 22:18:39 +0200
commit8c6fc0c15415b32080a848bbde640e104098cf13 (patch)
tree04a21bd28f9dc82c8e216390d6208ed93b9bcd11 /riscv/test.s
Initial drop
Add some riscv code Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'riscv/test.s')
-rw-r--r--riscv/test.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/riscv/test.s b/riscv/test.s
new file mode 100644
index 0000000..fe2b882
--- /dev/null
+++ b/riscv/test.s
@@ -0,0 +1,6 @@
+trunk42:
+ li t1, 42
+ bge t1, a0, done
+ mv a0, t1
+done:
+ jal exit