Changed jalr test

master
vhaudiquet 12 months ago
parent 44a917b398
commit 7f3efb092c
  1. 6
      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

Loading…
Cancel
Save