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 /gas/testsuite | |
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 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/compat-intel.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/compat.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/i386.exp | 4 |
4 files changed, 12 insertions, 2 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index d85a112..245646d 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -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. diff --git a/gas/testsuite/gas/i386/compat-intel.d b/gas/testsuite/gas/i386/compat-intel.d index f252a9b..d9404f8 100644 --- a/gas/testsuite/gas/i386/compat-intel.d +++ b/gas/testsuite/gas/i386/compat-intel.d @@ -1,3 +1,4 @@ +#as: -mmnemonic=att #objdump: -d -Mintel-mnemonic #name: i386 float Intel mnemonic #source: compat.s diff --git a/gas/testsuite/gas/i386/compat.d b/gas/testsuite/gas/i386/compat.d index 9629971..575f2bb 100644 --- a/gas/testsuite/gas/i386/compat.d +++ b/gas/testsuite/gas/i386/compat.d @@ -1,3 +1,4 @@ +#as: -mmnemonic=att #objdump: -d -Matt-mnemonic #name: i386 float AT&T mnemonic diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index 70e80bf..22812b8 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -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" |