Added JAL negative case

master
vhaudiquet 1 year ago
parent 7f3efb092c
commit 1c1b6a7ac0
  1. 10
      tests/jal.s

@ -10,12 +10,16 @@ _start:
jal ra, fn0
ebreak
fnNeg:
# All good
addi a0, zero, 0
ebreak
fn0:
# Check ra value with our t0 construct
beq t0, ra, eq0
ebreak
eq0:
# All good
addi a0, zero, 0
ebreak
# Try to jump back to a negative offset
jal ra, fnNeg

Loading…
Cancel
Save