From: Florian Weimer Date: Tue, 29 Sep 2020 15:28:22 +0000 (+0200) Subject: i386: Define __LAHF_SAHF__ and __MOVBE__ macros, based on ISA flags X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=92e652d8c21bd7e66cbb0f9001542a2f55345af0;p=gcc.git i386: Define __LAHF_SAHF__ and __MOVBE__ macros, based on ISA flags gcc/ * config/i386/i386-c.c (ix86_target_macros_internal): Define __LAHF_SAHF__ and __MOVBE__ based on ISA flags. --- diff --git a/gcc/config/i386/i386-c.c b/gcc/config/i386/i386-c.c index 9da682ab05c..e647fce9ad4 100644 --- a/gcc/config/i386/i386-c.c +++ b/gcc/config/i386/i386-c.c @@ -594,6 +594,10 @@ ix86_target_macros_internal (HOST_WIDE_INT isa_flag, def_or_undef (parse_in, "__AMX_INT8__"); if (isa_flag2 & OPTION_MASK_ISA2_AMX_BF16) def_or_undef (parse_in, "__AMX_BF16__"); + if (isa_flag & OPTION_MASK_ISA_SAHF) + def_or_undef (parse_in, "__LAHF_SAHF__"); + if (isa_flag2 & OPTION_MASK_ISA2_MOVBE) + def_or_undef (parse_in, "__MOVBE__"); if (TARGET_IAMCU) {