[PATCH] D105528: [RuntimeDyldChecker] Support offset in decode_operand expr

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 6 22:34:48 PDT 2021


StephenFan created this revision.
StephenFan added a reviewer: lhames.
Herald added subscribers: frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
StephenFan requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

In RISCV's relocations, some relocations are comprised of two relocation types. For example, R_RISCV_PCREL_HI20 and R_RISCV_PCREL_LO12_I compose a PC relative relocation. In general the compiler will set a label in the position of R_RISCV_PCREL_HI20. So, to test the R_RISCV_PCREL_LO12_I relocation, we need decode instruction at position of the label points to R_RISCV_PCREL_HI20 plus 4 (the size of a riscv non-compress instruction).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105528

Files:
  llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
  llvm/test/ExecutionEngine/JITLink/RISCV/ELF_pc_indirect.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105528.356867.patch
Type: text/x-patch
Size: 4298 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210707/103d7735/attachment.bin>


More information about the llvm-commits mailing list