[PATCH] D77737: [SPARC] Recognize and handle the %lm(sym) operator

l via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 8 09:12:48 PDT 2020


LemonBoy created this revision.
Herald added subscribers: llvm-commits, jrtc27, fedor.sergeev, hiraditya, jyknight.
Herald added a project: LLVM.

`R_SPARC_LM22` is similar in spirit (and encoding and behaviour) to `R_SPARC_HI22` but truncates the result instead of raising an error on overflow.

The codegen backend now emits a "canonical" [1] set of `R_SPARC_HH22`, `R_SPARC_HM10`, `R_SPARC_LM22` and `R_SPARC_LO10` relocations, there are no functional changes.

[1] https://docs.oracle.com/cd/E36784_01/html/E36858/gmadr.html


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77737

Files:
  llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp
  llvm/lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
  llvm/lib/Target/Sparc/MCTargetDesc/SparcFixupKinds.h
  llvm/lib/Target/Sparc/MCTargetDesc/SparcMCExpr.cpp
  llvm/lib/Target/Sparc/MCTargetDesc/SparcMCExpr.h
  llvm/lib/Target/Sparc/SparcAsmPrinter.cpp
  llvm/test/MC/Sparc/sparc-relocations.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77737.256035.patch
Type: text/x-patch
Size: 6400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200408/11be7caa/attachment.bin>


More information about the llvm-commits mailing list