[PATCH] D142691: [AVR] Fix inaccurate offsets in PC relative branch instructions

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 26 23:35:40 PST 2023


benshi001 added inline comments.


================
Comment at: llvm/test/MC/AVR/relocations.s:9
+; CHECK-NEXT: R_AVR_13_PCREL .text+0x4
+rjmp .
+
----------------
relative jump to the next instruction.


================
Comment at: llvm/test/MC/AVR/relocations.s:12
+; CHECK-NEXT: R_AVR_13_PCREL .text+0x4
+rjmp .-2
+
----------------
relative jump to current instruction.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142691/new/

https://reviews.llvm.org/D142691



More information about the llvm-commits mailing list