From 7f3efb092c9a686855f1883076abca8317fa00cd Mon Sep 17 00:00:00 2001 From: vhaudiquet Date: Mon, 9 Oct 2023 00:20:27 +0200 Subject: [PATCH] Changed jalr test --- tests/jalr.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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