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.
This commit is contained in:
parent
896c3b60e9
commit
1efbbeb461
@ -1,3 +1,25 @@
|
||||
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.
|
||||
|
||||
2007-12-20 Bob Wilson <bob.wilson@acm.org>
|
||||
|
||||
* config/tc-xtensa.c (xtensa_elf_cons): Set frag flags for
|
||||
|
@ -58,6 +58,7 @@
|
||||
static void set_code_flag (int);
|
||||
static void set_16bit_gcc_code_flag (int);
|
||||
static void set_intel_syntax (int);
|
||||
static void set_intel_mnemonic (int);
|
||||
static void set_allow_index_reg (int);
|
||||
static void set_cpu_arch (int);
|
||||
#ifdef TE_PE
|
||||
@ -283,6 +284,13 @@ static const char *flag_code_names[] =
|
||||
0 if att syntax. */
|
||||
static int intel_syntax = 0;
|
||||
|
||||
/* 1 for intel mnemonic,
|
||||
0 if att mnemonic. */
|
||||
static int intel_mnemonic = !SYSV386_COMPAT;
|
||||
|
||||
/* 1 ti support old (<= 2.8.1) versions of gcc. */
|
||||
static int old_gcc = OLDGCC_COMPAT;
|
||||
|
||||
/* 1 if register prefix % not required. */
|
||||
static int allow_naked_reg = 0;
|
||||
|
||||
@ -534,6 +542,8 @@ const pseudo_typeS md_pseudo_table[] =
|
||||
{"code64", set_code_flag, CODE_64BIT},
|
||||
{"intel_syntax", set_intel_syntax, 1},
|
||||
{"att_syntax", set_intel_syntax, 0},
|
||||
{"intel_mnemonic", set_intel_mnemonic, 1},
|
||||
{"att_mnemonic", set_intel_mnemonic, 0},
|
||||
{"allow_index_reg", set_allow_index_reg, 1},
|
||||
{"disallow_index_reg", set_allow_index_reg, 0},
|
||||
#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
|
||||
@ -1504,6 +1514,42 @@ set_intel_syntax (int syntax_flag)
|
||||
register_prefix = allow_naked_reg ? "" : "%";
|
||||
}
|
||||
|
||||
static void
|
||||
set_intel_mnemonic (int mnemonic_flag)
|
||||
{
|
||||
/* Find out if register prefixing is specified. */
|
||||
int ask_naked_reg = 0;
|
||||
|
||||
SKIP_WHITESPACE ();
|
||||
if (!is_end_of_line[(unsigned char) *input_line_pointer])
|
||||
{
|
||||
char *string = input_line_pointer;
|
||||
int e = get_symbol_end ();
|
||||
|
||||
if (strcmp (string, "prefix") == 0)
|
||||
ask_naked_reg = 1;
|
||||
else if (strcmp (string, "noprefix") == 0)
|
||||
ask_naked_reg = -1;
|
||||
else
|
||||
as_bad (_("bad argument to syntax directive."));
|
||||
*input_line_pointer = e;
|
||||
}
|
||||
demand_empty_rest_of_line ();
|
||||
|
||||
/* intel_mnemonic implies intel_syntax. */
|
||||
intel_mnemonic = intel_syntax = mnemonic_flag;
|
||||
|
||||
if (ask_naked_reg == 0)
|
||||
allow_naked_reg = (intel_mnemonic
|
||||
&& (bfd_get_symbol_leading_char (stdoutput) != '\0'));
|
||||
else
|
||||
allow_naked_reg = (ask_naked_reg < 0);
|
||||
|
||||
identifier_chars['%'] = intel_mnemonic && allow_naked_reg ? '%' : 0;
|
||||
identifier_chars['$'] = intel_mnemonic ? '$' : 0;
|
||||
register_prefix = allow_naked_reg ? "" : "%";
|
||||
}
|
||||
|
||||
static void
|
||||
set_allow_index_reg (int flag)
|
||||
{
|
||||
@ -3010,6 +3056,17 @@ match_template (void)
|
||||
if (i.operands != t->operands)
|
||||
continue;
|
||||
|
||||
/* Check AT&T mnemonic and old gcc support. */
|
||||
if (t->opcode_modifier.attmnemonic
|
||||
&& (intel_mnemonic
|
||||
|| (!old_gcc
|
||||
&& t->opcode_modifier.oldgcc)))
|
||||
continue;
|
||||
|
||||
/* Check Intel mnemonic. */
|
||||
if (!intel_mnemonic && t->opcode_modifier.intelmnemonic)
|
||||
continue;
|
||||
|
||||
/* Check the suffix, except for some instructions in intel mode. */
|
||||
if ((!intel_syntax || !t->opcode_modifier.ignoresize)
|
||||
&& ((t->opcode_modifier.no_bsuf && suffix_check.no_bsuf)
|
||||
@ -6911,6 +6968,11 @@ const char *md_shortopts = "qn";
|
||||
#define OPTION_DIVIDE (OPTION_MD_BASE + 2)
|
||||
#define OPTION_MARCH (OPTION_MD_BASE + 3)
|
||||
#define OPTION_MTUNE (OPTION_MD_BASE + 4)
|
||||
#define OPTION_MMNEMONIC (OPTION_MD_BASE + 5)
|
||||
#define OPTION_MSYNTAX (OPTION_MD_BASE + 6)
|
||||
#define OPTION_MINDEX_REG (OPTION_MD_BASE + 7)
|
||||
#define OPTION_MNAKED_REG (OPTION_MD_BASE + 8)
|
||||
#define OPTION_MOLD_GCC (OPTION_MD_BASE + 9)
|
||||
|
||||
struct option md_longopts[] =
|
||||
{
|
||||
@ -6921,6 +6983,11 @@ struct option md_longopts[] =
|
||||
{"divide", no_argument, NULL, OPTION_DIVIDE},
|
||||
{"march", required_argument, NULL, OPTION_MARCH},
|
||||
{"mtune", required_argument, NULL, OPTION_MTUNE},
|
||||
{"mmnemonic", required_argument, NULL, OPTION_MMNEMONIC},
|
||||
{"msyntax", required_argument, NULL, OPTION_MSYNTAX},
|
||||
{"mindex-reg", no_argument, NULL, OPTION_MINDEX_REG},
|
||||
{"mnaked-reg", no_argument, NULL, OPTION_MNAKED_REG},
|
||||
{"mold-gcc", no_argument, NULL, OPTION_MOLD_GCC},
|
||||
{NULL, no_argument, NULL, 0}
|
||||
};
|
||||
size_t md_longopts_size = sizeof (md_longopts);
|
||||
@ -7041,6 +7108,37 @@ md_parse_option (int c, char *arg)
|
||||
as_fatal (_("Invalid -mtune= option: `%s'"), arg);
|
||||
break;
|
||||
|
||||
case OPTION_MMNEMONIC:
|
||||
if (strcasecmp (arg, "att") == 0)
|
||||
intel_mnemonic = 0;
|
||||
else if (strcasecmp (arg, "intel") == 0)
|
||||
intel_mnemonic = 1;
|
||||
else
|
||||
as_fatal (_("Invalid -mmnemonic= option: `%s'"), arg);
|
||||
break;
|
||||
|
||||
case OPTION_MSYNTAX:
|
||||
if (strcasecmp (arg, "att") == 0)
|
||||
intel_syntax = 0;
|
||||
else if (strcasecmp (arg, "intel") == 0)
|
||||
intel_syntax = 1;
|
||||
else
|
||||
as_fatal (_("Invalid -msyntax= option: `%s'"), arg);
|
||||
break;
|
||||
|
||||
case OPTION_MINDEX_REG:
|
||||
allow_index_reg = 1;
|
||||
break;
|
||||
|
||||
case OPTION_MNAKED_REG:
|
||||
allow_naked_reg = 1;
|
||||
break;
|
||||
|
||||
case OPTION_MOLD_GCC:
|
||||
old_gcc = 1;
|
||||
intel_mnemonic = 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
@ -119,6 +119,29 @@ generated.
|
||||
|
||||
Valid @var{CPU} values are identical to @option{-march=@var{CPU}}.
|
||||
|
||||
@cindex @samp{-mmnemonic=} option, i386
|
||||
@cindex @samp{-mmnemonic=} option, x86-64
|
||||
@item -mmnemonic=@var{att}
|
||||
@item -mmnemonic=@var{intel}
|
||||
This option specifies instruction mnemonic for matching instructions.
|
||||
The @code{.att_mnemonic} and @code{.intel_mnemonic} directives will
|
||||
take precedent.
|
||||
|
||||
@cindex @samp{-msyntax=} option, i386
|
||||
@cindex @samp{-msyntax=} option, x86-64
|
||||
@item -msyntax=@var{att}
|
||||
@item -msyntax=@var{intel}
|
||||
This option specifies instruction syntax when processing instructions.
|
||||
The @code{.att_syntax} and @code{.intel_syntax} directives will
|
||||
take precedent.
|
||||
|
||||
@cindex @samp{-mnaked-reg} option, i386
|
||||
@cindex @samp{-mnaked-reg} option, x86-64
|
||||
@item -mnaked-reg
|
||||
This opetion specifies that registers don't require a @samp{%} prefix.
|
||||
The @code{.att_mnemonic}, @code{.intel_mnemonic}, @code{.att_syntax} and
|
||||
@code{.intel_syntax} directives will take precedent.
|
||||
|
||||
@end table
|
||||
|
||||
@node i386-Syntax
|
||||
@ -297,6 +320,23 @@ Far call/jump instructions are @samp{lcall} and @samp{ljmp} in
|
||||
AT&T syntax, but are @samp{call far} and @samp{jump far} in Intel
|
||||
convention.
|
||||
|
||||
@section AT&T Mnemonic versus Intel Mnemonic
|
||||
|
||||
@cindex i386 mnemonic compatibility
|
||||
@cindex mnemonic compatibility, i386
|
||||
|
||||
@code{@value{AS}} supports assembly using Intel mnemonic.
|
||||
@code{.intel_mnemonic} selects Intel mnemonic with Intel syntax, and
|
||||
@code{.att_mnemonic} switches back to the usual AT&T mnemonic with AT&T
|
||||
syntax for compatibility with the output of @code{@value{GCC}}.
|
||||
Either of these directives may have an optional argument, @code{prefix},
|
||||
or @code{noprefix} specifying whether registers require a @samp{%} prefix.
|
||||
Several x87 instructions, @samp{fadd}, @samp{fdiv}, @samp{fdivp},
|
||||
@samp{fdivr}, @samp{fdivrp}, @samp{fmul}, @samp{fsub}, @samp{fsubp},
|
||||
@samp{fsubr} and @samp{fsubrp}, are implemented in AT&T System V/386
|
||||
assembler with different mnemonics from those in Intel IA32 specification.
|
||||
@code{@value{GCC}} generates those instructions with AT&T mnemonic.
|
||||
|
||||
@node i386-Regs
|
||||
@section Register Naming
|
||||
|
||||
|
@ -1,3 +1,11 @@
|
||||
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".
|
||||
|
||||
2007-12-22 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* gas/i386/compat-intel.d: New file.
|
||||
|
@ -1,3 +1,4 @@
|
||||
#as: -mmnemonic=att
|
||||
#objdump: -d -Mintel-mnemonic
|
||||
#name: i386 float Intel mnemonic
|
||||
#source: compat.s
|
||||
|
@ -1,3 +1,4 @@
|
||||
#as: -mmnemonic=att
|
||||
#objdump: -d -Matt-mnemonic
|
||||
#name: i386 float AT&T mnemonic
|
||||
|
||||
|
@ -23,8 +23,8 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
|
||||
set old_ASFLAGS "$ASFLAGS"
|
||||
set ASFLAGS "$ASFLAGS --32"
|
||||
|
||||
run_list_test "float" "-al"
|
||||
run_list_test "general" "-al --listing-lhs-width=2"
|
||||
run_list_test "float" "-al -mmnemonic=att"
|
||||
run_list_test "general" "-al --listing-lhs-width=2 -mold-gcc"
|
||||
run_list_test "inval" "-al"
|
||||
run_list_test "segment" "-al"
|
||||
run_list_test "inval-seg" "-al"
|
||||
|
@ -1,3 +1,20 @@
|
||||
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.
|
||||
|
||||
2007-12-22 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* i386-dis.c (intel_mnemonic): New.
|
||||
|
@ -289,6 +289,9 @@ static bitfield opcode_modifiers[] =
|
||||
BITFIELD (Drex),
|
||||
BITFIELD (Drexv),
|
||||
BITFIELD (Drexc),
|
||||
BITFIELD (OldGcc),
|
||||
BITFIELD (ATTMnemonic),
|
||||
BITFIELD (IntelMnemonic),
|
||||
};
|
||||
|
||||
static bitfield operand_types[] =
|
||||
|
@ -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. */
|
||||
|
@ -600,10 +600,8 @@ fldz, 0, 0xd9ee, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, {
|
||||
fadd, 2, 0xd8c0, None, 2, 0, ShortForm|FloatD|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg, FloatAcc }
|
||||
// alias for fadd %st(i), %st
|
||||
fadd, 1, 0xd8c0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg }
|
||||
#if SYSV386_COMPAT
|
||||
// alias for faddp
|
||||
fadd, 0, 0xdec1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh, { 0 }
|
||||
#endif
|
||||
fadd, 0, 0xdec1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh|ATTMnemonic, { 0 }
|
||||
fadd, 1, 0xd8, 0x0, 1, 0, Modrm|FloatMF|No_bSuf|No_wSuf|No_qSuf|No_ldSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S }
|
||||
fiadd, 1, 0xde, 0x0, 1, 0, Modrm|FloatMF|No_bSuf|No_wSuf|No_qSuf|No_ldSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S }
|
||||
|
||||
@ -615,61 +613,43 @@ faddp, 2, 0xdec0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|
|
||||
|
||||
// subtract
|
||||
fsub, 1, 0xd8e0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg }
|
||||
#if SYSV386_COMPAT
|
||||
fsub, 2, 0xd8e0, None, 2, 0, ShortForm|FloatD|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg, FloatAcc }
|
||||
fsub, 2, 0xd8e0, None, 2, 0, ShortForm|FloatD|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { FloatReg, FloatAcc }
|
||||
// alias for fsubp
|
||||
fsub, 0, 0xdee1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh, { 0 }
|
||||
#else
|
||||
fsub, 2, 0xd8e0, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|FloatD|FloatR, { FloatReg, FloatAcc }
|
||||
#endif
|
||||
fsub, 0, 0xdee1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh|ATTMnemonic, { 0 }
|
||||
fsub, 2, 0xd8e0, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|FloatD|FloatR|IntelMnemonic, { FloatReg, FloatAcc }
|
||||
fsub, 1, 0xd8, 0x4, 1, 0, Modrm|FloatMF|No_bSuf|No_wSuf|No_qSuf|No_ldSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S }
|
||||
fisub, 1, 0xde, 0x4, 1, 0, Modrm|FloatMF|No_bSuf|No_wSuf|No_qSuf|No_ldSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S }
|
||||
|
||||
#if SYSV386_COMPAT
|
||||
fsubp, 2, 0xdee0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatAcc, FloatReg }
|
||||
fsubp, 1, 0xdee0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg }
|
||||
fsubp, 0, 0xdee1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { 0 }
|
||||
#if OLDGCC_COMPAT
|
||||
fsubp, 2, 0xdee0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh, { FloatReg, FloatAcc }
|
||||
#endif
|
||||
#else
|
||||
fsubp, 2, 0xdee8, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm, { FloatAcc, FloatReg }
|
||||
fsubp, 1, 0xdee8, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm, { FloatReg }
|
||||
fsubp, 0, 0xdee9, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf, { 0 }
|
||||
#endif
|
||||
fsubp, 2, 0xdee0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { FloatAcc, FloatReg }
|
||||
fsubp, 1, 0xdee0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { FloatReg }
|
||||
fsubp, 0, 0xdee1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { 0 }
|
||||
fsubp, 2, 0xdee0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh|ATTMnemonic|OldGcc, { FloatReg, FloatAcc }
|
||||
fsubp, 2, 0xdee8, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|IntelMnemonic, { FloatAcc, FloatReg }
|
||||
fsubp, 1, 0xdee8, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|IntelMnemonic, { FloatReg }
|
||||
fsubp, 0, 0xdee9, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|IntelMnemonic, { 0 }
|
||||
|
||||
// subtract reverse
|
||||
fsubr, 1, 0xd8e8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg }
|
||||
#if SYSV386_COMPAT
|
||||
fsubr, 2, 0xd8e8, None, 2, 0, ShortForm|FloatD|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg, FloatAcc }
|
||||
fsubr, 2, 0xd8e8, None, 2, 0, ShortForm|FloatD|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { FloatReg, FloatAcc }
|
||||
// alias for fsubrp
|
||||
fsubr, 0, 0xdee9, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh, { 0 }
|
||||
#else
|
||||
fsubr, 2, 0xd8e8, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|FloatD|FloatR, { FloatReg, FloatAcc }
|
||||
#endif
|
||||
fsubr, 0, 0xdee9, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh|ATTMnemonic, { 0 }
|
||||
fsubr, 2, 0xd8e8, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|FloatD|FloatR|IntelMnemonic, { FloatReg, FloatAcc }
|
||||
fsubr, 1, 0xd8, 0x5, 1, 0, Modrm|FloatMF|No_bSuf|No_wSuf|No_qSuf|No_ldSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S }
|
||||
fisubr, 1, 0xde, 0x5, 1, 0, Modrm|FloatMF|No_bSuf|No_wSuf|No_qSuf|No_ldSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S }
|
||||
|
||||
#if SYSV386_COMPAT
|
||||
fsubrp, 2, 0xdee8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatAcc, FloatReg }
|
||||
fsubrp, 1, 0xdee8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg }
|
||||
fsubrp, 0, 0xdee9, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { 0 }
|
||||
#if OLDGCC_COMPAT
|
||||
fsubrp, 2, 0xdee8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh, { FloatReg, FloatAcc }
|
||||
#endif
|
||||
#else
|
||||
fsubrp, 2, 0xdee0, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm, { FloatAcc, FloatReg }
|
||||
fsubrp, 1, 0xdee0, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm, { FloatReg }
|
||||
fsubrp, 0, 0xdee1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf, { 0 }
|
||||
#endif
|
||||
fsubrp, 2, 0xdee8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { FloatAcc, FloatReg }
|
||||
fsubrp, 1, 0xdee8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { FloatReg }
|
||||
fsubrp, 0, 0xdee9, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { 0 }
|
||||
fsubrp, 2, 0xdee8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh|ATTMnemonic|OldGcc, { FloatReg, FloatAcc }
|
||||
fsubrp, 2, 0xdee0, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|IntelMnemonic, { FloatAcc, FloatReg }
|
||||
fsubrp, 1, 0xdee0, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|IntelMnemonic, { FloatReg }
|
||||
fsubrp, 0, 0xdee1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|IntelMnemonic, { 0 }
|
||||
|
||||
// multiply
|
||||
fmul, 2, 0xd8c8, None, 2, 0, ShortForm|FloatD|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg, FloatAcc }
|
||||
fmul, 1, 0xd8c8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg }
|
||||
#if SYSV386_COMPAT
|
||||
// alias for fmulp
|
||||
fmul, 0, 0xdec9, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh, { 0 }
|
||||
#endif
|
||||
fmul, 0, 0xdec9, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh|ATTMnemonic, { 0 }
|
||||
fmul, 1, 0xd8, 0x1, 1, 0, Modrm|FloatMF|No_bSuf|No_wSuf|No_qSuf|No_ldSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S }
|
||||
fimul, 1, 0xde, 0x1, 1, 0, Modrm|FloatMF|No_bSuf|No_wSuf|No_qSuf|No_ldSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S }
|
||||
|
||||
@ -680,53 +660,37 @@ fmulp, 2, 0xdec8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|
|
||||
|
||||
// divide
|
||||
fdiv, 1, 0xd8f0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg }
|
||||
#if SYSV386_COMPAT
|
||||
fdiv, 2, 0xd8f0, None, 2, 0, ShortForm|FloatD|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg, FloatAcc }
|
||||
fdiv, 2, 0xd8f0, None, 2, 0, ShortForm|FloatD|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { FloatReg, FloatAcc }
|
||||
// alias for fdivp
|
||||
fdiv, 0, 0xdef1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh, { 0 }
|
||||
#else
|
||||
fdiv, 2, 0xd8f0, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|FloatD|FloatR, { FloatReg, FloatAcc }
|
||||
#endif
|
||||
fdiv, 0, 0xdef1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh|ATTMnemonic, { 0 }
|
||||
fdiv, 2, 0xd8f0, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|FloatD|FloatR|IntelMnemonic, { FloatReg, FloatAcc }
|
||||
fdiv, 1, 0xd8, 0x6, 1, 0, Modrm|FloatMF|No_bSuf|No_wSuf|No_qSuf|No_ldSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S }
|
||||
fidiv, 1, 0xde, 0x6, 1, 0, Modrm|FloatMF|No_bSuf|No_wSuf|No_qSuf|No_ldSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S }
|
||||
|
||||
#if SYSV386_COMPAT
|
||||
fdivp, 2, 0xdef0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatAcc, FloatReg }
|
||||
fdivp, 1, 0xdef0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg }
|
||||
fdivp, 0, 0xdef1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { 0 }
|
||||
#if OLDGCC_COMPAT
|
||||
fdivp, 2, 0xdef0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh, { FloatReg, FloatAcc }
|
||||
#endif
|
||||
#else
|
||||
fdivp, 2, 0xdef8, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm, { FloatAcc, FloatReg }
|
||||
fdivp, 1, 0xdef8, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm, { FloatReg }
|
||||
fdivp, 0, 0xdef9, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf, { 0 }
|
||||
#endif
|
||||
fdivp, 2, 0xdef0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { FloatAcc, FloatReg }
|
||||
fdivp, 1, 0xdef0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { FloatReg }
|
||||
fdivp, 0, 0xdef1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { 0 }
|
||||
fdivp, 2, 0xdef0, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh|ATTMnemonic|OldGcc, { FloatReg, FloatAcc }
|
||||
fdivp, 2, 0xdef8, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|IntelMnemonic, { FloatAcc, FloatReg }
|
||||
fdivp, 1, 0xdef8, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|IntelMnemonic, { FloatReg }
|
||||
fdivp, 0, 0xdef9, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|IntelMnemonic, { 0 }
|
||||
|
||||
// divide reverse
|
||||
fdivr, 1, 0xd8f8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg }
|
||||
#if SYSV386_COMPAT
|
||||
fdivr, 2, 0xd8f8, None, 2, 0, ShortForm|FloatD|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg, FloatAcc }
|
||||
fdivr, 2, 0xd8f8, None, 2, 0, ShortForm|FloatD|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { FloatReg, FloatAcc }
|
||||
// alias for fdivrp
|
||||
fdivr, 0, 0xdef9, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh, { 0 }
|
||||
#else
|
||||
fdivr, 2, 0xd8f8, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|FloatD|FloatR, { FloatReg, FloatAcc }
|
||||
#endif
|
||||
fdivr, 0, 0xdef9, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh|ATTMnemonic, { 0 }
|
||||
fdivr, 2, 0xd8f8, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|FloatD|FloatR|IntelMnemonic, { FloatReg, FloatAcc }
|
||||
fdivr, 1, 0xd8, 0x7, 1, 0, Modrm|FloatMF|No_bSuf|No_wSuf|No_qSuf|No_ldSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S }
|
||||
fidivr, 1, 0xde, 0x7, 1, 0, Modrm|FloatMF|No_bSuf|No_wSuf|No_qSuf|No_ldSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S }
|
||||
|
||||
#if SYSV386_COMPAT
|
||||
fdivrp, 2, 0xdef8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatAcc, FloatReg }
|
||||
fdivrp, 1, 0xdef8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { FloatReg }
|
||||
fdivrp, 0, 0xdef9, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { 0 }
|
||||
#if OLDGCC_COMPAT
|
||||
fdivrp, 2, 0xdef8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh, { FloatReg, FloatAcc }
|
||||
#endif
|
||||
#else
|
||||
fdivrp, 2, 0xdef0, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm, { FloatAcc, FloatReg }
|
||||
fdivrp, 1, 0xdef0, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm, { FloatReg }
|
||||
fdivrp, 0, 0xdef1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf, { 0 }
|
||||
#endif
|
||||
fdivrp, 2, 0xdef8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { FloatAcc, FloatReg }
|
||||
fdivrp, 1, 0xdef8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { FloatReg }
|
||||
fdivrp, 0, 0xdef9, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ATTMnemonic, { 0 }
|
||||
fdivrp, 2, 0xdef8, None, 2, 0, ShortForm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|Ugh|ATTMnemonic|OldGcc, { FloatReg, FloatAcc }
|
||||
fdivrp, 2, 0xdef0, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|IntelMnemonic, { FloatAcc, FloatReg }
|
||||
fdivrp, 1, 0xdef0, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|ShortForm|IntelMnemonic, { FloatReg }
|
||||
fdivrp, 0, 0xdef1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_ldSuf|No_qSuf|IntelMnemonic, { 0 }
|
||||
|
||||
f2xm1, 0, 0xd9f0, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { 0 }
|
||||
fyl2x, 0, 0xd9f1, None, 2, 0, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf, { 0 }
|
||||
|
4338
opcodes/i386-tbl.h
4338
opcodes/i386-tbl.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user