HomePhabricator

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

Authored by hvdijk on Dec 16 2020, 2:39 PM.

Description

[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

Details

Committed
hvdijkDec 16 2020, 2:39 PM
Reviewer
RKSimon
Differential Revision
D93158: [X86] Avoid %fs:(%eax) references in x32 mode
Parents
rG150fe05db441: [Test] Fix undef var in catch-undef-behavior.c
Branches
Unknown
Tags
Unknown