@ -12,15 +12,17 @@ _start:
# Try to call two imbricated functions
jal fn0
auipc t0, 0
jalr ra, 12(t0)
auipc ra, 0
jalr 12(ra)
ebreak
# just_after : address is 12 bytes after auipc
just_after:
# ra must still be the old address
addi a0, zero, 0
ret
addi a0, zero, 1
# fn0 : function that calls fn1 and returns