Properly display extra data/address size prefixes
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 9 May 2014 17:58:00 +0000 (10:58 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 9 May 2014 17:58:00 +0000 (10:58 -0700)
commitdf18fdba5dc9243d657c6e26a3a4e2c65e62b8bd
tree168d1f3dbbd68600d570e4b23a0e76965e14aef3
parent0c263177a5123186a05b44d3d76b7a3f811e70b9
Properly display extra data/address size prefixes

X86 disassembler checks data and address size prefixes when displaying
instruction mnemonic and operands.  For the extra data and address size
prefixes, their names depend only on the address mode, not the data and
address size prefixes.  This patch changes x86 disassembler not to check
the data and address size prefix when printing extra data and address size
prefixes.

gas/testsuite/

* gas/i386/nops-1-core2.d: Replace data32 with data16.
* gas/i386/nops-4a-i686.d: Likewise.
* gas/i386/nops-5-i686.d: Likewise.
* gas/i386/nops-5.d: Likewise.
* gas/i386/x86-64-cbw-intel.d: Likewise.
* gas/i386/x86-64-cbw.d: Likewise.
* gas/i386/x86-64-io-intel.d: Likewise.
* gas/i386/x86-64-io-suffix.d: Likewise.
* gas/i386/x86-64-io.d: Likewise.
* gas/i386/x86-64-nops-1-core2.d: Likewise.
* gas/i386/x86-64-nops-1-g64.d: Likewise.
* gas/i386/x86-64-nops-1-nocona.d: Likewise.
* gas/i386/x86-64-nops-1.d: Likewise.
* gas/i386/x86-64-nops-2.d: Likewise.
* gas/i386/x86-64-nops-3.d: Likewise.
* gas/i386/x86-64-nops-4-core2.d: Likewise.
* gas/i386/x86-64-nops-4.d: Likewise.
* gas/i386/x86-64-nops-5-k8.d: Likewise.
* gas/i386/x86-64-nops-5.d: Likewise.
* gas/i386/x86-64-stack-intel.d: Likewise.
* gas/i386/x86-64-stack-suffix.d: Likewise.
* gas/i386/x86-64-stack.d: Likewise.
* gas/i386/ilp32/x86-64-cbw-intel.d: Likewise.
* gas/i386/ilp32/x86-64-cbw.d: Likewise.
* gas/i386/ilp32/x86-64-io-intel.d: Likewise.
* gas/i386/ilp32/x86-64-io-suffix.d: Likewise.
* gas/i386/ilp32/x86-64-io.d: Likewise.
* gas/i386/ilp32/x86-64-nops-1-core2.d:
* gas/i386/ilp32/x86-64-nops-1-nocona.d: Likewise.
* gas/i386/ilp32/x86-64-nops-1.d: Likewise.
* gas/i386/ilp32/x86-64-nops-2.d: Likewise.
* gas/i386/ilp32/x86-64-nops-3.d: Likewise.
* gas/i386/ilp32/x86-64-nops-4-core2.d: Likewise.
* gas/i386/ilp32/x86-64-nops-4.d: Likewise.
* gas/i386/ilp32/x86-64-nops-5-k8.d: Likewise.
* gas/i386/ilp32/x86-64-nops-5.: Likewise.
* gas/i386/ilp32/x86-64-stack-intel.d: Likewise.
* gas/i386/ilp32/x86-64-stack-suffix.: Likewise.
* gas/i386/ilp32/x86-64-stack.d: Likewise.

ld/testsuite/

* ld-x86-64/tlsbin.dd: Replace data32 with data16.
* ld-x86-64/tlsdesc-nacl.pd: Likewise.
* ld-x86-64/tlsgdesc.dd: Likewise.
* ld-x86-64/tlsld1.dd: Likewise.
* ld-x86-64/tlsld3.dd: Likewise.
* ld-x86-64/tlspic.dd: Likewise.

opcodes/

2014-05-09  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (ADDR16_PREFIX): Removed.
(ADDR32_PREFIX): Likewise.
(DATA16_PREFIX): Likewise.
(DATA32_PREFIX): Likewise.
(prefix_name): Updated.
(print_insn): Simplify data and address size prefixes processing.
50 files changed:
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/ilp32/x86-64-cbw-intel.d
gas/testsuite/gas/i386/ilp32/x86-64-cbw.d
gas/testsuite/gas/i386/ilp32/x86-64-io-intel.d
gas/testsuite/gas/i386/ilp32/x86-64-io-suffix.d
gas/testsuite/gas/i386/ilp32/x86-64-io.d
gas/testsuite/gas/i386/ilp32/x86-64-nops-1-core2.d
gas/testsuite/gas/i386/ilp32/x86-64-nops-1-nocona.d
gas/testsuite/gas/i386/ilp32/x86-64-nops-1.d
gas/testsuite/gas/i386/ilp32/x86-64-nops-2.d
gas/testsuite/gas/i386/ilp32/x86-64-nops-3.d
gas/testsuite/gas/i386/ilp32/x86-64-nops-4-core2.d
gas/testsuite/gas/i386/ilp32/x86-64-nops-4.d
gas/testsuite/gas/i386/ilp32/x86-64-nops-5-k8.d
gas/testsuite/gas/i386/ilp32/x86-64-nops-5.d
gas/testsuite/gas/i386/ilp32/x86-64-stack-intel.d
gas/testsuite/gas/i386/ilp32/x86-64-stack-suffix.d
gas/testsuite/gas/i386/ilp32/x86-64-stack.d
gas/testsuite/gas/i386/nops-1-core2.d
gas/testsuite/gas/i386/nops-4a-i686.d
gas/testsuite/gas/i386/nops-5-i686.d
gas/testsuite/gas/i386/nops-5.d
gas/testsuite/gas/i386/x86-64-cbw-intel.d
gas/testsuite/gas/i386/x86-64-cbw.d
gas/testsuite/gas/i386/x86-64-io-intel.d
gas/testsuite/gas/i386/x86-64-io-suffix.d
gas/testsuite/gas/i386/x86-64-io.d
gas/testsuite/gas/i386/x86-64-nops-1-core2.d
gas/testsuite/gas/i386/x86-64-nops-1-g64.d
gas/testsuite/gas/i386/x86-64-nops-1-nocona.d
gas/testsuite/gas/i386/x86-64-nops-1.d
gas/testsuite/gas/i386/x86-64-nops-2.d
gas/testsuite/gas/i386/x86-64-nops-3.d
gas/testsuite/gas/i386/x86-64-nops-4-core2.d
gas/testsuite/gas/i386/x86-64-nops-4.d
gas/testsuite/gas/i386/x86-64-nops-5-k8.d
gas/testsuite/gas/i386/x86-64-nops-5.d
gas/testsuite/gas/i386/x86-64-stack-intel.d
gas/testsuite/gas/i386/x86-64-stack-suffix.d
gas/testsuite/gas/i386/x86-64-stack.d
ld/testsuite/ChangeLog
ld/testsuite/ld-x86-64/plt-nacl.pd
ld/testsuite/ld-x86-64/tlsbin.dd
ld/testsuite/ld-x86-64/tlsdesc-nacl.pd
ld/testsuite/ld-x86-64/tlsgdesc.dd
ld/testsuite/ld-x86-64/tlsld1.dd
ld/testsuite/ld-x86-64/tlsld3.dd
ld/testsuite/ld-x86-64/tlspic.dd
opcodes/ChangeLog
opcodes/i386-dis.c