Files
fmn_processor/bench/tests/op/jalr.s

22 lines
480 B
ArmAsm

# expected: 000002BC, 000003BC, 000000BC
.text
_start:
add x5, x0, 0x00C
jalr x1, x5, 0
add x31, x0, 0x1BC
# target for jalr (placed immediately)
add x31, x0, 0x2BC
# jalr with immediate offset -> jump forward
add x6, x0, 0x018
jalr x2, x6, 0
add x31, x0, 0x3BC
# jalr to same register (should set rd to return addr) and continue
add x7, x0, 0x028
jalr x3, x7, 0
add x31, x0, 0x4BC
# final marker
add x31, x0, 0x0BC