[PATCH] D93241: [AArch64InstPrinter] Change printADRPLabel to print the target address in hexadecimal form

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 16 02:03:45 PST 2020


psmith added a comment.

The calculation looks good to me. It is logically equivalent to that given in the reference manual

  imm = SignExtend(immhi:immlo:Zeros(12), 64); // const int64_t Offset = Op.getImm() << 12;
  bits(64) base = PC[];                        // Address
  
  base<11:0> = Zeros(12);                      // (Address & -4096)
  
  X[d] = base + imm;                           // + Offset


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93241



More information about the llvm-commits mailing list