[PATCH] D92737: [X86] Handle localdynamic TLS model in x32 mode

Harald van Dijk via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 6 12:51:53 PST 2020


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

D92346 <https://reviews.llvm.org/D92346> added TLS_(base_)addrX32 to handle TLS in x32 mode, but missed the different TLS models. This diff fixes the logic for the local dynamic model where `RAX` was used when `EAX` should be, and extends the tests to cover all four TLS models.

Fixes https://bugs.llvm.org/show_bug.cgi?id=26472.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92737

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/pic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92737.309787.patch
Type: text/x-patch
Size: 6272 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201206/5ffc6dea/attachment.bin>


More information about the llvm-commits mailing list