j immediate decoding fix

This commit is contained in:
nora 2025-03-10 21:55:18 +01:00
parent 13aec667db
commit 9cdc795824
3 changed files with 59 additions and 10 deletions

View file

@ -40,6 +40,15 @@ branch6:
FAIL
branch7:
# Backwards jal
li t0, 0
backwards:
li t1, 0
bne t0, t1, end_backwards
li t0, 1
jal backwards
end_backwards:
# Test link registers being set correctly:
auipc t1, 0
jal t0, link2