[PATCH] D152841: Prevent out of range fixup encoding on AArch64

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 13 14:31:24 PDT 2023


MaskRay accepted this revision.
MaskRay added a comment.

This is still going to be a bit slow. I think we should use the following scheme to minimize the number of large `.space` as well as testing the real range.

    FileCheck ... --implicit-check-not=error:
  
    .p2align 2
  # CHECK: [[#@LINE+1]]:3: error: fixup value out of range
    adr x0, adr1-8
    adr x0, adr1-8
  adr0:
    .space (1<<20)
  adr1:
    adr x0, adr0
  # CHECK: [[#@LINE+1]]:3: error: fixup value out of range
    adr x0, adr0


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152841



More information about the llvm-commits mailing list