[PATCH] D153206: [PPC32] Parse bl __tls_get_addr(x at tlsgd)@plt+32768

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 17 14:43:06 PDT 2023


MaskRay created this revision.
MaskRay added reviewers: PowerPC, brad, q66, uweigand.
Herald added subscribers: steven.zhang, shchenz, kbarton, hiraditya, nemanjai.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

PPC32 -fpic/-fPIC generates `bl __tls_get_addr(x at tlsgd)@PLT` or
`bl __tls_get_addr(x at tlsgd)@PLT+32768`
`powerpc-linux-gnu-gcc -fPIC` generates `bl __tls_get_addr+32668(x at tlsgd)@plt`.

These expressions can be by GNU assembler but not by the integrated
assembler. Add the support.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153206

Files:
  llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
  llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
  llvm/test/MC/PowerPC/ppc32-tls.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153206.532425.patch
Type: text/x-patch
Size: 6328 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230617/40c9c3f8/attachment.bin>


More information about the llvm-commits mailing list