HomePhabricator

[X86] Avoid data16 prefix for lea in x32 mode

Authored by hvdijk on Dec 12 2020, 9:05 AM.

Description

[X86] Avoid data16 prefix for lea in x32 mode

The ABI demands a data16 prefix for lea in 64-bit LP64 mode, but not in
64-bit ILP32 mode. In both modes this prefix would ordinarily be
ignored, but the instructions may be changed by the linker to
instructions that are affected by the prefix.

Reviewed By: RKSimon

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

Details

Committed
hvdijkDec 12 2020, 9:05 AM
Reviewer
RKSimon
Differential Revision
D93157: [X86] Avoid data16 prefix for lea in x32 mode
Parents
rGa4823377fd2f: [ARM] Add basic masked load/store costs
Branches
Unknown
Tags
Unknown