[PATCH] D43157: [RISCV] Properly evaluate VK_RISCV_PCREL_LO

Michael Spencer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 10 03:16:04 PST 2018


Bigcheese created this revision.
Bigcheese added reviewers: asb, ahmedcharles.
Herald added subscribers: kito-cheng, niosHD, sabuasal, apazos, jordy.potman.lists, simoncook, johnrusso, rbar.

VK_RISCV_PCREL_LO has to be handled specially.  The MCExpr inside is
actually the location of an auipc instruction with a VK_RISCV_PCREL_HI fixup
pointing to the real target.


https://reviews.llvm.org/D43157

Files:
  lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
  lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp
  lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.h
  test/MC/RISCV/fixups.s
  test/MC/RISCV/pcrel-hilo.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43157.133746.patch
Type: text/x-patch
Size: 7725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180210/471534d8/attachment.bin>


More information about the llvm-commits mailing list