[PATCH] D146216: [lld][ELF] Relax long jump/call to short jump/call on AVR

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 16 05:15:13 PDT 2023


benshi001 added inline comments.


================
Comment at: lld/test/ELF/avr-relax.s:37
+# RELAX:        <la0>:
+# RELAX-NEXT:     c: 0c 94 08 08   jmp   0x1010
+# RELAX:        <la1>:
----------------
These 2 jmp instructions are no relaxed, due to out of range.


================
Comment at: lld/test/ELF/basic-avr.s:12
 # CHECK:      <main>:
-# CHECK-NEXT:   0: 0e 94 02 00 <unknown>
 # CHECK:      <foo>:
----------------
We should not display ` <unknown>`, we can display the instructions via adding `--mcpu=atmega328p` to `llvm-objdump`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D146216



More information about the llvm-commits mailing list