diff options
author | Jan Beulich <jbeulich@suse.com> | 2023-12-15 12:05:11 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2023-12-15 12:05:11 +0100 |
commit | 35266cb139697e00ee993118aa621fdac17e3f6e (patch) | |
tree | 60f056030dfd74a0f274a420a6e6b98fdda4bfb7 /gas | |
parent | 7d3182d6aad5f456305892641c761460275cec46 (diff) | |
download | gdb-35266cb139697e00ee993118aa621fdac17e3f6e.zip gdb-35266cb139697e00ee993118aa621fdac17e3f6e.tar.gz gdb-35266cb139697e00ee993118aa621fdac17e3f6e.tar.bz2 |
x86: fold assembly dialect attributes
Now that ATTSyntax and ATTMnemonic aren't use in combination anymore,
fold them and IntelSyntax into a single, enum-like attribute. Note that
this shrinks i386_opcode_modifier back to 2 32-bit words (albeit that's
not for long, seeing in-flight additions for APX).
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/tc-i386-intel.c | 3 | ||||
-rw-r--r-- | gas/config/tc-i386.c | 7 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gas/config/tc-i386-intel.c b/gas/config/tc-i386-intel.c index aff1ee6..4c8cdb2 100644 --- a/gas/config/tc-i386-intel.c +++ b/gas/config/tc-i386-intel.c @@ -825,8 +825,7 @@ i386_intel_operand (char *operand_string, int got_a_float) /* Easy checks to skip templates which won't match anyway. */ if (this_operand >= t->operands - || t->opcode_modifier.attsyntax - || t->opcode_modifier.attmnemonic) + || t->opcode_modifier.dialect >= ATT_SYNTAX) continue; switch (suffix) diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index d3014da..f147324 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -7052,14 +7052,15 @@ match_template (char mnem_suffix) /* Check AT&T mnemonic. */ specific_error = progress (unsupported_with_intel_mnemonic); - if (!intel_syntax && intel_mnemonic && t->opcode_modifier.attmnemonic) + if (!intel_syntax && intel_mnemonic + && t->opcode_modifier.dialect == ATT_MNEMONIC) continue; /* Check AT&T/Intel syntax. */ specific_error = progress (unsupported_syntax); if (intel_syntax - ? t->opcode_modifier.attsyntax || t->opcode_modifier.attmnemonic - : t->opcode_modifier.intelsyntax) + ? t->opcode_modifier.dialect >= ATT_SYNTAX + : t->opcode_modifier.dialect == INTEL_SYNTAX) continue; /* Check Intel64/AMD64 ISA. */ |