[all-commits] [llvm/llvm-project] 29c8ea: [X86] Handle localdynamic TLS model in x32 mode

Harald van Dijk via All-commits all-commits at lists.llvm.org
Tue Dec 8 13:10:34 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 29c8ea6f1abd6606b65dafd3db8f15c8104c2593
      https://github.com/llvm/llvm-project/commit/29c8ea6f1abd6606b65dafd3db8f15c8104c2593
  Author: Harald van Dijk <harald at gigawatt.nl>
  Date:   2020-12-08 (Tue, 08 Dec 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/pic.ll

  Log Message:
  -----------
  [X86] Handle localdynamic TLS model in x32 mode

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.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D92737




More information about the All-commits mailing list