Added JAL negative case
This commit is contained in:
parent
7f3efb092c
commit
1c1b6a7ac0
10
tests/jal.s
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…
Reference in New Issue
Block a user