HomePhabricator

[X86] Define __LAHF_SAHF__ if feature 'sahf' is set or 32-bit mode

Authored by MaskRay on Oct 10 2020, 10:21 PM.

Description

[X86] Define LAHF_SAHF if feature 'sahf' is set or 32-bit mode

GCC 11 will define this macro.

In LLVM, the feature flag only applies to 64-bit mode and we always define the
macro in 32-bit mode. This is different from GCC -m32 in which -mno-sahf can
suppress the macro. The discrepancy can unlikely cause trouble.

Reviewed By: craig.topper

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

Details

Committed
MaskRayOct 11 2020, 9:46 AM
Reviewer
craig.topper
Differential Revision
D89198: [X86] Define __LAHF_SAHF__ if feature 'sahf' is set or 32-bit mode
Parents
rGbe6e8e50f417: [LV] Tail folded inloop reductions.
Branches
Unknown
Tags
Unknown