diff --git a/tests/jalr.s b/tests/jalr.s index 5100477..48f743c 100644 --- a/tests/jalr.s +++ b/tests/jalr.s @@ -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 ebreak # fn0 : function that calls fn1 and returns