Add .d8 suffix support to x86 assembler
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 20 Jan 2012 20:53:50 +0000 (20:53 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 20 Jan 2012 20:53:50 +0000 (20:53 +0000)
commita501d77eeba717f6d54dce44f286f9e3aad83144
treef43d8ee355afd45a51c5198c90b73035471a3adf
parente825046fcf0193aad44b1f3d1a8514190278b85d
Add .d8 suffix support to x86 assembler

gas/

2012-01-20  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (_i386_insn): Replace disp32_encoding with
disp_encoding.
(md_assemble): Updated.
(output_branch): Likewise.
(parse_insn): Support .d8 suffix.
(build_modrm_byte): Fake zero displacement for .d8 and .d32
suffixes.

* doc/c-i386.texi: Document .d8 suffix.

gas/testsuite/

2012-01-20  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/disp32.s: Add tests for .d8 suffix.
* gas/i386/x86-64-disp32.s: Likewise.

* gas/i386/disp32.d: Updated.
* gas/i386/x86-64-disp32.d: Likewise.
gas/ChangeLog
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/disp32.d
gas/testsuite/gas/i386/disp32.s
gas/testsuite/gas/i386/x86-64-disp32.d
gas/testsuite/gas/i386/x86-64-disp32.s