[PATCH] D117614: [lld][ELF] Add support for ADRP+ADD optimization for AArch64

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 28 10:54:18 PST 2022


MaskRay added inline comments.


================
Comment at: lld/test/ELF/aarch64-adrp-add.s:44
+ .rodata 0x1000: { *(.rodata) }
+ .text   0x2000: { *(.text) }
+}
----------------
You can add a `.data` whose address is greater than .text to test positive offsets.

The idea is similar to ppc64-long-branch.s


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117614



More information about the llvm-commits mailing list