[PATCH] D147364: [lld][ELF] Support relocations R_AVR_LO8_LDI_GS/R_AVR_HI8_LDI_GS
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 19 18:34:44 PDT 2023
benshi001 marked an inline comment as done.
benshi001 added inline comments.
================
Comment at: lld/test/ELF/avr-thunk.s:8
+
+; CHECK: 000110b4 <__AVRThunk_b>:
+; CHECK-NEXT: jmp 0x20000
----------------
benshi001 wrote:
> MaskRay wrote:
> > Where is 000110b4 referenced in the CHECK lines?
> `000110b4` is reffered by
>
> ```
> ; CHECK-NEXT: ldi r30, 0x5a
> ; CHECK-NEXT: ldi r31, 0x88
> ```
>
> that is ((0x88 << 8) + 0x5a) == 0x110b4
>
((0x88 << 8) + 0x5a) << 1 == 0x110b4
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147364/new/
https://reviews.llvm.org/D147364
More information about the llvm-commits
mailing list