[all-commits] [llvm/llvm-project] 09d0e7: [X86] Avoid %fs:(%eax) references in x32 mode

Harald van Dijk via All-commits all-commits at lists.llvm.org
Wed Dec 16 14:45:35 PST 2020


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

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

  Log Message:
  -----------
  [X86] Avoid %fs:(%eax) references in x32 mode

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.

Reviewed By: RKSimon

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




More information about the All-commits mailing list