binutils-gdb/ld/testsuite/ld-x86-64
H.J. Lu df18fdba5d 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.
2014-05-09 10:58:00 -07:00
..
32bit.s * ld-x86-64/x86-64.exp: Add test of linking mixed 32-bit and 2012-01-05 15:17:18 +00:00
64bit.s * ld-x86-64/x86-64.exp: Add test of linking mixed 32-bit and 2012-01-05 15:17:18 +00:00
abs-k1om.d Add initial Intel K1OM support. 2011-07-22 20:22:38 +00:00
abs-l1om.d bfd/ 2012-04-03 16:01:38 +00:00
abs.d
bnd-branch-1.d Add bnd-branch-1 test 2013-11-21 04:53:05 -08:00
bnd-branch-1.s Add bnd-branch-1 test 2013-11-21 04:53:05 -08:00
bnd-ifunc-1.d Create the second PLT for BND relocations 2014-02-19 11:48:23 -08:00
bnd-ifunc-1.s Create the second PLT for BND relocations 2014-02-19 11:48:23 -08:00
bnd-plt-1.d Create the second PLT for BND relocations 2014-02-19 11:48:23 -08:00
compressed1.d
compressed1.s
discarded1.d
discarded1.s
discarded1.t
dummy.s
dwarfreloc.exp Update copyright years 2014-03-05 22:16:15 +10:30
dwarfreloc.rd
dwarfreloc1.s
dwarfreloc2.s
export-class.exp Update copyright years 2014-03-05 22:16:15 +10:30
foo.s
hidden1.d
hidden1.s
hidden2.d bfd/ 2012-04-03 16:01:38 +00:00
hidden2.s
hidden3.d
hidden3.s
ia32-1.d
ia32-2.d bfd/ 2013-08-26 22:18:07 +00:00
ia32-3.d bfd/ 2013-08-26 22:18:07 +00:00
ilp32-1.d
ilp32-2.d Set CPU type in BFD backend for x86_64-nacl* and i?86-nacl* targets 2013-11-07 10:00:32 -08:00
ilp32-3.d Set CPU type in BFD backend for x86_64-nacl* and i?86-nacl* targets 2013-11-07 10:00:32 -08:00
ilp32-4-nacl.d bfd/ 2013-08-26 19:27:25 +00:00
ilp32-4.d Don't align text/data/bss sections for ELF 2013-05-31 17:27:28 +00:00
ilp32-4.s Remove ABI_64_P check on R_X86_64_PCXX 2012-01-10 20:18:18 +00:00
ilp32-5.d Remove ABI_64_P check on R_X86_64_PCXX 2012-01-10 20:18:18 +00:00
ilp32-5.s Remove ABI_64_P check on R_X86_64_PCXX 2012-01-10 20:18:18 +00:00
ilp32-6.d Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ilp32-6.s Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ilp32-7.d Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ilp32-7.s Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ilp32-8.d bfd/ 2012-04-03 16:01:38 +00:00
ilp32-8.s Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ilp32-9.d bfd/ 2012-04-03 16:01:38 +00:00
ilp32-9.s Check R_X86_64_32 overflow and allow R_X86_64_64 for x32. 2011-08-01 23:04:23 +00:00
ilp32-10.d Remove ABI_64_P check on R_X86_64_PCXX 2012-01-10 20:18:18 +00:00
ilp32-10.s Remove ABI_64_P check on R_X86_64_PCXX 2012-01-10 20:18:18 +00:00
ilp32-11.d Adjust ld-x86-64/ilp32-11.s for NACL 2012-05-22 21:42:50 +00:00
ilp32-11.s Adjust ld-x86-64/ilp32-11.s for NACL 2012-05-22 21:42:50 +00:00
incompatible.l * ld-x86-64/x86-64.exp: Add test of linking mixed 32-bit and 2012-01-05 15:17:18 +00:00
lea1.s Convert mov to lea for loading local function address 2012-08-31 04:26:17 +00:00
lea1a.d Convert mov to lea for loading local function address 2012-08-31 04:26:17 +00:00
lea1b.d Convert mov to lea for loading local function address 2012-08-31 04:26:17 +00:00
lea1c.d Convert mov to lea for loading local function address 2012-08-31 04:26:17 +00:00
lea1d.d Convert mov to lea for loading local function address 2012-08-31 04:26:17 +00:00
lea1e.d Convert mov to lea for loading local function address 2012-08-31 04:26:17 +00:00
lea1f.d Convert mov to lea for loading local function address 2012-08-31 04:26:17 +00:00
lea1g.d Convert mov to lea in size_dynamic_sections 2012-08-31 20:41:41 +00:00
lea1h.d Convert mov to lea in size_dynamic_sections 2012-08-31 20:41:41 +00:00
lea1i.d Convert mov to lea in size_dynamic_sections 2012-08-31 20:41:41 +00:00
lea1j.d Convert mov to lea in size_dynamic_sections 2012-08-31 20:41:41 +00:00
lea1k.d Convert mov to lea in size_dynamic_sections 2012-08-31 20:41:41 +00:00
lea1l.d Convert mov to lea in size_dynamic_sections 2012-08-31 20:41:41 +00:00
line.exp Update copyright years 2014-03-05 22:16:15 +10:30
lp64-1.d
lp64-2.d Set CPU type in BFD backend for x86_64-nacl* and i?86-nacl* targets 2013-11-07 10:00:32 -08:00
lp64-3.d Set CPU type in BFD backend for x86_64-nacl* and i?86-nacl* targets 2013-11-07 10:00:32 -08:00
mixed1a.s
mixed1b.s
mixed2a.s
mixed2b.s
mov1.s Don't optimize relocation against _DYNAMIC 2012-09-01 02:50:14 +00:00
mov1a.d Don't optimize relocation against _DYNAMIC 2012-09-01 02:50:14 +00:00
mov1b.d Don't optimize relocation against _DYNAMIC 2012-09-01 02:50:14 +00:00
mov1c.d Don't optimize relocation against _DYNAMIC 2012-09-01 02:50:14 +00:00
mov1d.d Don't optimize relocation against _DYNAMIC 2012-09-01 02:50:14 +00:00
mpx.exp Update copyright years 2014-03-05 22:16:15 +10:30
mpx1.out Add R_X86_64_PC32_BND and R_X86_64_PLT32_BND 2013-11-17 08:57:56 -08:00
mpx1a.c Add R_X86_64_PC32_BND and R_X86_64_PLT32_BND 2013-11-17 08:57:56 -08:00
mpx1a.rd Add R_X86_64_PC32_BND and R_X86_64_PLT32_BND 2013-11-17 08:57:56 -08:00
mpx1b.c Add R_X86_64_PC32_BND and R_X86_64_PLT32_BND 2013-11-17 08:57:56 -08:00
mpx1c.c Add R_X86_64_PC32_BND and R_X86_64_PLT32_BND 2013-11-17 08:57:56 -08:00
mpx1c.rd Add R_X86_64_PC32_BND and R_X86_64_PLT32_BND 2013-11-17 08:57:56 -08:00
mpx2.out Add mpx1static, mpx2 and mpx2static tests 2013-11-20 12:35:10 -08:00
mpx2a.c Add mpx1static, mpx2 and mpx2static tests 2013-11-20 12:35:10 -08:00
mpx2a.rd Add mpx1static, mpx2 and mpx2static tests 2013-11-20 12:35:10 -08:00
mpx2b.c Add mpx1static, mpx2 and mpx2static tests 2013-11-20 12:35:10 -08:00
mpx2c.c Add mpx1static, mpx2 and mpx2static tests 2013-11-20 12:35:10 -08:00
mpx2c.rd Add mpx1static, mpx2 and mpx2static tests 2013-11-20 12:35:10 -08:00
nogot1.d
nogot1.s
nogot2.d
nogot2.s
pcrel8.d
pcrel16.d bfd/ 2012-04-03 16:01:38 +00:00
plt-nacl.pd Properly display extra data/address size prefixes 2014-05-09 10:58:00 -07:00
plt-pic.s bfd/ 2012-04-03 16:01:38 +00:00
plt.pd bfd/ 2012-04-03 16:01:38 +00:00
plt.s bfd/ 2012-04-03 16:01:38 +00:00
pltlib.s bfd/ 2012-04-03 16:01:38 +00:00
pr12570a.d ld/testsuite/ 2012-05-22 18:22:03 +00:00
pr12570a.s Always create PLT eh_frame section for i386/x86-64 2012-05-22 14:05:21 +00:00
pr12570b.d ld/testsuite/ 2012-05-22 18:22:03 +00:00
pr12570b.s Always create PLT eh_frame section for i386/x86-64 2012-05-22 14:05:21 +00:00
pr12718.d Don't align text/data/bss sections for ELF 2013-05-31 17:27:28 +00:00
pr12718.s Add testcases for PR ld/12718. 2011-05-01 13:38:22 +00:00
pr12921.d bfd/ 2012-06-06 10:50:18 +00:00
pr12921.s Add testcases for PR ld/12921. 2011-06-24 14:03:15 +00:00
pr13082-1.s Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32. 2011-08-12 19:42:39 +00:00
pr13082-1a.d Count R_X86_64_RELATIVE64 as reloc_class_relative 2012-05-10 17:15:19 +00:00
pr13082-1b.d Count R_X86_64_RELATIVE64 as reloc_class_relative 2012-05-10 17:15:19 +00:00
pr13082-2.s Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32. 2011-08-12 19:42:39 +00:00
pr13082-2a.d Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32. 2011-08-12 19:42:39 +00:00
pr13082-2b.d Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32. 2011-08-12 19:42:39 +00:00
pr13082-3.s Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32. 2011-08-12 19:42:39 +00:00
pr13082-3a.d Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32. 2011-08-12 19:42:39 +00:00
pr13082-3b.d Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32. 2011-08-12 19:42:39 +00:00
pr13082-4.s Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32. 2011-08-12 19:42:39 +00:00
pr13082-4a.d Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32. 2011-08-12 19:42:39 +00:00
pr13082-4b.d Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32. 2011-08-12 19:42:39 +00:00
pr13082-5.s Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32. 2011-08-12 19:42:39 +00:00
pr13082-5a.d Use .got.plt for IFUNC symbols if there are no GOT relocations. 2011-09-12 18:17:36 +00:00
pr13082-5b.d Restore R_386_IRELATIVE and R_X86_64_IRELATIVE 2012-03-09 16:28:38 +00:00
pr13082-6.s Add R_X86_64_RELATIVE64 and handle R_X86_64_64 for x32. 2011-08-12 19:42:39 +00:00
pr13082-6a.d Restore R_386_IRELATIVE and R_X86_64_IRELATIVE 2012-03-09 16:28:38 +00:00
pr13082-6b.d Restore R_386_IRELATIVE and R_X86_64_IRELATIVE 2012-03-09 16:28:38 +00:00
pr13947.d Set reloc_count to 0 for reloc sections 2012-04-13 23:20:00 +00:00
pr13947.s Set reloc_count to 0 for reloc sections 2012-04-13 23:20:00 +00:00
pr14207.d Don't adjust LOAD segment to match GNU_RELRO segment 2014-01-10 21:49:56 +10:30
pr14207.s Abort if PT_GNU_RELRO segment doesn't fit in PT_LOAD segment 2012-06-12 12:55:11 +00:00
pr14215.d Don't hardcode .got.plt into DATA_SEGMENT_RELRO_END evaluation 2012-06-11 13:23:51 +00:00
pr14215.s Don't hardcode .got.plt into DATA_SEGMENT_RELRO_END evaluation 2012-06-11 13:23:51 +00:00
protected1.d
protected1.s
protected2-k1om.d Add initial Intel K1OM support. 2011-07-22 20:22:38 +00:00
protected2-l1om.d bfd/ 2012-04-03 16:01:38 +00:00
protected2.d
protected2.s
protected3-k1om.d Add initial Intel K1OM support. 2011-07-22 20:22:38 +00:00
protected3-l1om.d bfd/ 2012-04-03 16:01:38 +00:00
protected3.d bfd/ 2012-04-03 16:01:38 +00:00
protected3.s
protected4.d Handle relocation against protected function for -Bsymbolic 2012-03-20 18:16:38 +00:00
protected4.s Handle relocation against protected function for -Bsymbolic 2012-03-20 18:16:38 +00:00
protected5.d Handle relocation against protected function for -Bsymbolic 2012-03-20 18:16:38 +00:00
protected5.s Handle relocation against protected function for -Bsymbolic 2012-03-20 18:16:38 +00:00
simple.c Allow building x32 DSO from x86-64 object file. 2011-06-09 05:51:11 +00:00
split-by-file-nacl.rd Update x86 nacl tests for section alignment change 2013-06-04 16:08:51 +00:00
split-by-file.rd Don't align text/data/bss sections for ELF 2013-05-31 17:27:28 +00:00
split-by-file1.s
split-by-file2.s
start.s
tlsbin-nacl.rd bfd/ 2013-08-26 19:27:25 +00:00
tlsbin.dd Properly display extra data/address size prefixes 2014-05-09 10:58:00 -07:00
tlsbin.rd Don't align text/data/bss sections for ELF 2013-05-31 17:27:28 +00:00
tlsbin.s Handle R_X86_64_TPOFF64 in executable. 2011-05-26 13:22:04 +00:00
tlsbin.sd bfd/ 2012-04-03 16:01:38 +00:00
tlsbin.td bfd/ 2012-04-03 16:01:38 +00:00
tlsbindesc-nacl.rd bfd/ 2013-08-26 19:27:25 +00:00
tlsbindesc.dd Don't align text/data/bss sections for ELF 2013-05-31 17:27:28 +00:00
tlsbindesc.rd Don't align text/data/bss sections for ELF 2013-05-31 17:27:28 +00:00
tlsbindesc.s
tlsbindesc.sd bfd/ 2012-04-03 16:01:38 +00:00
tlsbindesc.td bfd/ 2012-04-03 16:01:38 +00:00
tlsbinpic.s
tlsdesc-nacl.pd Properly display extra data/address size prefixes 2014-05-09 10:58:00 -07:00
tlsdesc-nacl.rd ld/testsuite/ 2013-08-23 23:13:46 +00:00
tlsdesc.dd Don't align text/data/bss sections for ELF 2013-05-31 17:27:28 +00:00
tlsdesc.pd PR ld/12570 2011-06-20 13:18:52 +00:00
tlsdesc.rd Don't align text/data/bss sections for ELF 2013-05-31 17:27:28 +00:00
tlsdesc.s
tlsdesc.sd bfd/ 2012-04-03 16:01:38 +00:00
tlsdesc.td bfd/ 2012-04-03 16:01:38 +00:00
tlsg.s Handle R_X86_64_DTPOFF64 2013-06-28 15:07:55 +00:00
tlsg.sd Adjust ld-x86-64/tlsg.sd 2013-07-01 16:17:11 +00:00
tlsgd1.dd
tlsgd1.s
tlsgd2.d
tlsgd2.s
tlsgd3.d
tlsgd3.s
tlsgd4.dd Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsgd4.s Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsgd5.dd bfd/ 2012-04-03 16:01:38 +00:00
tlsgd5a.s Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsgd5b.s Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsgd6.dd bfd/ 2012-04-03 16:01:38 +00:00
tlsgd6a.s Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsgd6b.s Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsgd7.dd * elf64-x86-64.c (elf_x86_64_check_tls_transition): Allow 2013-08-29 10:25:27 +00:00
tlsgd7.s * elf64-x86-64.c (elf_x86_64_check_tls_transition): Allow 2013-08-29 10:25:27 +00:00
tlsgd8.dd * elf64-x86-64.c (elf_x86_64_check_tls_transition): Allow 2013-08-29 10:25:27 +00:00
tlsgd8.s * elf64-x86-64.c (elf_x86_64_check_tls_transition): Allow 2013-08-29 10:25:27 +00:00
tlsgdesc-nacl.rd ld/testsuite/ 2012-07-02 18:20:31 +00:00
tlsgdesc.dd Properly display extra data/address size prefixes 2014-05-09 10:58:00 -07:00
tlsgdesc.rd ld/ 2012-06-15 15:13:41 +00:00
tlsgdesc.s
tlsie1.dd
tlsie1.s
tlsie2.d
tlsie2.s
tlsie3.d
tlsie3.s
tlsie4.dd Supprt TLS x32 IE->LE transition. 2011-03-03 22:11:33 +00:00
tlsie4.s Supprt TLS x32 IE->LE transition. 2011-03-03 22:11:33 +00:00
tlsld1.dd Properly display extra data/address size prefixes 2014-05-09 10:58:00 -07:00
tlsld1.s
tlsld2.dd Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsld2.s Support TLS x32 GD->IE, GD->LE and LD->LE transitions. 2011-03-12 14:38:31 +00:00
tlsld3.dd Properly display extra data/address size prefixes 2014-05-09 10:58:00 -07:00
tlsld3.s * elf64-x86-64.c (elf_x86_64_check_tls_transition): Allow 2013-08-29 10:25:27 +00:00
tlsle1.d
tlsle1.s
tlslib.s
tlspic-nacl.rd * elf64-x86-64.c (elf_x86_64_check_tls_transition): Allow 2013-08-29 10:25:27 +00:00
tlspic.dd Properly display extra data/address size prefixes 2014-05-09 10:58:00 -07:00
tlspic.rd * elf64-x86-64.c (elf_x86_64_check_tls_transition): Allow 2013-08-29 10:25:27 +00:00
tlspic.sd bfd/ 2012-04-03 16:01:38 +00:00
tlspic.td bfd/ 2012-04-03 16:01:38 +00:00
tlspic1.s * elf64-x86-64.c (elf_x86_64_check_tls_transition): Allow 2013-08-29 10:25:27 +00:00
tlspic2.s
tlspie1.d
tlspie1.s
undefined.s
unique1.d
unique1.s
x86-64-64-export-class.rd * ld-elf/export-class.sd: New test. 2012-08-28 20:29:19 +00:00
x86-64-x32-export-class.rd * ld-elf/export-class.sd: New test. 2012-08-28 20:29:19 +00:00
x86-64-x32.rd Allow building x32 DSO from x86-64 object file. 2011-06-09 05:51:11 +00:00
x86-64.exp Update copyright years 2014-03-05 22:16:15 +10:30