projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d13102
)
i386: Define __LAHF_SAHF__ and __MOVBE__ macros, based on ISA flags
author
Florian Weimer
<fweimer@redhat.com>
Tue, 29 Sep 2020 15:28:22 +0000
(17:28 +0200)
committer
Florian Weimer
<fweimer@redhat.com>
Wed, 30 Sep 2020 12:15:12 +0000
(14:15 +0200)
gcc/
* config/i386/i386-c.c (ix86_target_macros_internal): Define
__LAHF_SAHF__ and __MOVBE__ based on ISA flags.
gcc/config/i386/i386-c.c
patch
|
blob
|
history
diff --git
a/gcc/config/i386/i386-c.c
b/gcc/config/i386/i386-c.c
index 9da682ab05c92f205fa25af7f8c9e3f80e4d34ea..e647fce9ad4d0d3e0d5ab6704008e5ff208a5260 100644
(file)
--- 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)
{