diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-12-24 05:27:39 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-12-24 05:27:39 +0000 |
commit | 1efbbeb4614cfed6db59358265e1786aa23e629b (patch) | |
tree | abf27ea1d4341155ee62eef97ddc4a1579073e63 /opcodes/i386-opc.h | |
parent | 896c3b60e9a713df14bbad76eeda8b1a4dcaf3ac (diff) | |
download | gdb-1efbbeb4614cfed6db59358265e1786aa23e629b.zip gdb-1efbbeb4614cfed6db59358265e1786aa23e629b.tar.gz gdb-1efbbeb4614cfed6db59358265e1786aa23e629b.tar.bz2 |
gas/
2007-12-23 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (set_intel_mnemonic): New.
(intel_mnemonic): Likewise.
(old_gcc): Likewise.
(OPTION_MMNEMONIC): Likewise.
(OPTION_MSYNTAX): Likewise.
(OPTION_MINDEX_REG): Likewise.
(OPTION_MNAKED_REG): Likewise.
(OPTION_MOLD_GCC): Likewise.
(md_pseudo_table): Add .intel_mnemonic and .att_mnemonic.
(match_template): Don't allow AT&T/Intel mnemonic if Intel/AT&T
mnemonic is specified. Don't allow old gcc support if old_gcc
is 0.
(md_longopts): Add -mmnemonic, -msyntax, -mindex-reg,
-mmnaked-reg and -mold-gcc.
(md_parse_option): Handle OPTION_MMNEMONIC, OPTION_MSYNTAX,
OPTION_MINDEX_REG, OPTION_MNAKED_REG and OPTION_MOLD_GCC.
* doc/c-i386.texi: Docoument -mmnemonic, -msyntax, --mnaked-reg
and AT&T mnemonic vs. Intel mnemonic.
gas/testsuite/
2007-12-23 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/compat-intel.d: Pass -mmnemonic=att to assembler.
* gas/i386/compat.d: Likewise.
* gas/i386/i386.exp: Pass -mmnemonic=att to assembler for
"float". Pass -mold-gcc to assembler for "general".
opcodes/
2007-12-23 H.J. Lu <hongjiu.lu@intel.com>
* i386-gen.c (opcode_modifiers): Add OldGcc, ATTMnemonic and
IntelMnemonic.
* i386-opc.h (OldGcc): New.
(ATTMnemonic): Likewise.
(IntelMnemonic): Likewise.
(Opcode_Modifier_Max): Updated.
(i386_opcode_modifier): Add oldgcc, attmnemonic and
intelmnemonic.
* i386-opc.tbl: Update fadd, fdiv, fdivp, fdivr, fdivrp, fmul,
fsub, fsubp, fsubr and fsubrp with OldGcc, ATTMnemonic and
IntelMnemonic.
* i386-tbl.h: Regeneratd.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r-- | opcodes/i386-opc.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h index 27d3e85..731854d 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -220,8 +220,14 @@ typedef union i386_cpu_flags #define Drexv (Drex + 1) /* special DREX for comparisons */ #define Drexc (Drexv + 1) +/* Compatible with old (<= 2.8.1) versions of gcc */ +#define OldGcc (Drexc + 1) +/* AT&T mnemonic. */ +#define ATTMnemonic (OldGcc + 1) +/* Intel mnemonic. */ +#define IntelMnemonic (ATTMnemonic + 1) /* The last bitfield in i386_opcode_modifier. */ -#define Opcode_Modifier_Max Drexc +#define Opcode_Modifier_Max IntelMnemonic typedef struct i386_opcode_modifier { @@ -263,6 +269,9 @@ typedef struct i386_opcode_modifier unsigned int drex:1; unsigned int drexv:1; unsigned int drexc:1; + unsigned int oldgcc:1; + unsigned int attmnemonic:1; + unsigned int intelmnemonic:1; } i386_opcode_modifier; /* Position of operand_type bits. */ |