Assembly Tidbits #10: jalr
In RISC-V assembly, which of these are valid uses of the jalr instruction?
jalr a0 # (1)
jalr (a0) # (2)
jalr a0, a0 # (3)
jalr a0, a0, 4 # (4)
jalr a0, (a0) # (5)
jalr a0, 4(a0) # (6)
Solution
Binutils 2.38 thinks all are valid and they mean the following respectively
jal...