[PATCH] D93158: [X86] Avoid %fs:(%eax) references in x32 mode

Harald van Dijk via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 12 04:34:59 PST 2020


hvdijk created this revision.
hvdijk added reviewers: craig.topper, RKSimon.
Herald added subscribers: phosek, pengfei, hiraditya.
hvdijk requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The ABI explains that %fs:(%eax) zero-extends %eax to 64 bits, and adds
that the TLS base address, but that the TLS base address need not be
at the start of the TLS block, TLS references may use negative offsets.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D93158

Files:
  llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
  llvm/test/CodeGen/X86/pic.ll
  llvm/test/CodeGen/X86/tls-pie.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93158.311377.patch
Type: text/x-patch
Size: 4719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201212/680ee822/attachment.bin>


More information about the llvm-commits mailing list