[PATCH] D157839: [RISCV] Support global address as inline asm memory operand of `m`
Wang Pengcheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 14 23:53:57 PDT 2023
wangpc added a comment.
In D157839#4587325 <https://reviews.llvm.org/D157839#4587325>, @jrtc27 wrote:
> medany tests for %pcrel_lo12 being handled correctly?
For medany code model, `TargetGlobalAddress` will be lowered to `LLA` or `LGA` pseudos, and `SelectAddrRegImm` in `SelectInlineAsmMemoryOperand` will return the `LLA` or `LGA` and offset `0`. The offset will always be 0, so I think it is handled correctly. And I just confirmed that GCC has the same behavior in medany code model.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157839/new/
https://reviews.llvm.org/D157839
More information about the llvm-commits
mailing list