gas/
commit192d0bb8d8d53411cb9dd93b32b5028d79a713cb
authorH.J. Lu <hjl@lucon.org>
Tue, 15 Jan 2008 01:37:56 +0000 (15 01:37 +0000)
committerH.J. Lu <hjl@lucon.org>
Tue, 15 Jan 2008 01:37:56 +0000 (15 01:37 +0000)
tree8c226b61b3441e368451bb62f3c1c0e7b2210d51
parent053667a6784e5964cfb93846ae880702e3377b89
gas/

2008-01-14  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (match_reg_size): New.
(match_mem_size): Likewise.
(operand_size_match): Likewise.
(operand_type_match): Also clear all size fields.
(match_template): Skip Intel syntax when in AT&T syntax.
Call operand_size_match to check operand size.
(i386_att_operand): Set the mem field to 1 for memory
operand.
(i386_intel_operand): Likewise.

gas/testsuite/

2008-01-14  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.s: Add tests for movsx, movzx and movnti.
* gas/i386/inval.s: Likewise.
* gas/i386/x86_64.s: Likewise.
* gas/i386/x86-64-inval.s: Likewise.

* gas/i386/i386.d: Updated.
* gas/i386/inval.l: Likewise.
* gas/i386/x86_64.d: Likewise.
* gas/i386/x86-64-inval.l: Likewise.

opcodes/

2008-01-14  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Add IntelSyntax.
(operand_types): Add Mem.

* i386-opc.h (IntelSyntax): New.
* i386-opc.h (Mem): New.
(Byte): Updated.
(Opcode_Modifier_Max): Updated.
(i386_opcode_modifier): Add intelsyntax.
(i386_operand_type): Add mem.

* i386-opc.tbl: Remove Reg16 from movnti.  Add sizes to more
instructions.

* i386-reg.tbl: Add size for accumulator.

* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
17 files changed:
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/i386.d
gas/testsuite/gas/i386/i386.s
gas/testsuite/gas/i386/inval.l
gas/testsuite/gas/i386/inval.s
gas/testsuite/gas/i386/x86-64-inval.l
gas/testsuite/gas/i386/x86-64-inval.s
gas/testsuite/gas/i386/x86_64.d
gas/testsuite/gas/i386/x86_64.s
opcodes/ChangeLog
opcodes/i386-gen.c
opcodes/i386-init.h
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h