On Feb 02 2023, Geert Uytterhoeven wrote:
Hi Adrian,
On Wed, Feb 1, 2023 at 11:17 PM John Paul Adrian Glaubitz
<glaubitz@xxxxxxxxxxxxxxxxxxx> wrote:
Can anyone answer this question regarding the difference between "bsr" and "jsr":
https://github.com/llvm/llvm-project/issues/60354#issuecomment-1412018845
"jsr" is an absolute jump to a subroutine.
"bsr" is a relative jump (8-bit, 16-bit, or 32-bit signed offset) to a
subroutine,
i.e. typically for calling a nearby function.
jsr/jmp also take pcrel, but bsr/bra with 8-bit disp is shorter.
--
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."