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 jal ra, fn0
ebreak ebreak
fnNeg:
# All good
addi a0, zero, 0
ebreak
fn0: fn0:
# Check ra value with our t0 construct # Check ra value with our t0 construct
beq t0, ra, eq0 beq t0, ra, eq0
ebreak ebreak
eq0: eq0:
# All good # Try to jump back to a negative offset
addi a0, zero, 0 jal ra, fnNeg
ebreak

Loading…
Cancel
Save