old-cross-binutils/ld/testsuite/ld-mips-elf/mips16-pic-3.dd
Simon Dardis 40fc1451c6 [MIPS] Map 'move' to 'or'.
The MIPS assembly idiom 'move' now maps to the 'or' machine instruction. This
change affects microMIPS, MIPS32, MIPS64.

2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>

opcodes/

	* micromips-opc.c (micromips_opcodes): Re-order table so that move
	based on 'or' is first.
	* mips-opc.c (mips_builtin_opcodes): Ditto.

bfd/

	* elfxx-mips.c (STUB_MOVE): Change to use 'or' only.
	(mips_o32_exec_plt0_entry, mips_n32_exec_plt0_entry,
	mips_n64_exec_plt0_entry, micromips_insn32_o32_exec_plt0_entry):
	Update to use 'or' instead of 'addu/daddu'.
	(_bfd_mips_elf_finish_dynamic_symbol): Update usage of STUB_MOVE.
	(move_insns_32): Reorder table.

gas/

	* config/tc-mips.c (move_register): Change to use 'or' only.
	(s_cpload, s_cpsetup, s_cprestore, s_cpreturn): Update to
	use or for move.

gas/testsuite/

	* gas/mips/elf-rel23.d: Update test.
	* gas/mips/elf-rel23.d: Ditto.
	* gas/mips/elf-rel23a.d: Ditto.
	* gas/mips/elf-rel23b.d: Ditto.
	* gas/mips/elf_e_flags1.d: Ditto.
	* gas/mips/elf_e_flags2.d: Ditto.
	* gas/mips/elf_e_flags3.d: Ditto.
	* gas/mips/elf_e_flags4.d: Ditto.
	* gas/mips/loc-swap-dis.d: Ditto.
	* gas/mips/micromips-insn32.d: Ditto.
	* gas/mips/micromips-noinsn32.d: Ditto.
	* gas/mips/micromips-trap.d: Ditto.
	* gas/mips/micromips.d: Ditto.
	* gas/mips/mips-abi32-pic.d: Ditto.
	* gas/mips/mips-abi32.d: Ditto.
	* gas/mips/mips-gp32-fp32-pic.d: Ditto.
	* gas/mips/mips-gp32-fp32.d: Ditto.
	* gas/mips/mips-gp32-fp64-pic.d: Ditto.
	* gas/mips/mips-gp32-fp64.d: Ditto.
	* gas/mips/mips-gp64-fp32-pic.d: Ditto.
	* gas/mips/mips-gp64-fp32.d: Ditto.
	* gas/mips/mips-gp64-fp64-pic.d: Ditto.
	* gas/mips/mips-gp64-fp64.d: Ditto.
	* gas/mips/mipsr6@loc-swap-dis.d: Ditto.
	* gas/mips/tls-o32.d: Ditto.
	* gas/mips/uld2-eb.d: Ditto.
	* gas/mips/uld2-el.d: Ditto.
	* gas/mips/ulw2-eb-ilocks.d: Ditto.
	* gas/mips/ulw2-eb.d: Ditto.
	* gas/mips/ulw2-el-ilocks.d: Ditto.
	* gas/mips/ulw2-el.d: Ditto.
	* gas/mips/move.d: New test.
	* gas/mips/move.s: Ditto.
	* gas/mips/micromips32-move.d: Ditto.
	* gas/mips/micromips32-move.s: Ditto.
	* gas/mips/mips.exp: Run the new tests.

gold/

	* mips.cc (plt0_entry_o32, plt0_entry_n32, plt0_entry_n64,
	lazy_stub_normal_1, lazy_stub_normal_1_n64,
	lazy_stub_normal_2, lazy_stub_normal_2_n64, lazy_stub_big,
	lazy_stub_big_n64, lazy_stub_micromips32_normal_1_n64,
	lazy_stub_micromips32_normal_2_n64, lazy_stub_micromips32_big,
	lazy_stub_micromips32_big_n64): Update to use 'or' for move instead
	of 'addu/daddu'.

ld/testsuite/

	* ld-mips-elf/compressed-plt-1-n32-mips16.od: Update test.
	* ld-mips-elf/compressed-plt-1-n32-umips.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-mips16-got.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-mips16-only.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-mips16-word.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-mips16.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-se.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-umips-got.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-umips-word.od: Ditto.
	* ld-mips-elf/compressed-plt-1-o32-umips.od: Ditto.
	* ld-mips-elf/jalx-2.dd: Ditto.
	* ld-mips-elf/mips16-pic-3.dd: Ditto.
	* ld-mips-elf/pic-and-nonpic-3a.dd: Ditto.
	* ld-mips-elf/pic-and-nonpic-3b.dd: Ditto.
	* ld-mips-elf/pic-and-nonpic-5b.dd: Ditto.
	* ld-mips-elf/pic-and-nonpic-6-n32.dd: Ditto.
	* ld-mips-elf/pic-and-nonpic-6-o32.dd: Ditto.
	* ld-mips-elf/stub-dynsym-1-10000.d: Ditto.
	* ld-mips-elf/stub-dynsym-1-2fe80.d: Ditto.
	* ld-mips-elf/stub-dynsym-1-7fff.d: Ditto.
	* ld-mips-elf/stub-dynsym-1-8000.d: Ditto.
	* ld-mips-elf/stub-dynsym-1-fff0.d: Ditto.
	* ld-mips-elf/tlsbin-o32.d: Ditto.
	* ld-mips-elf/tlsdyn-o32-1.d: Ditto.
	* ld-mips-elf/tlsdyn-o32-2.d: Ditto.
	* ld-mips-elf/tlsdyn-o32-3.d: Ditto.
	* ld-mips-elf/tlsdyn-o32.d: Ditto.
	* ld-mips-elf/tlslib-o32.d: Ditto.
2015-08-12 17:10:22 +01:00

265 lines
5 KiB
Text

.*
Disassembly of section \.text:
00040400 <unused1>:
.*: e820 jr ra
.*: 6500 nop
00040404 <unused2>:
.*: e820 jr ra
.*: 6500 nop
00040408 <unused3>:
.*: e820 jr ra
.*: 6500 nop
0004040c <unused4>:
.*: e820 jr ra
.*: 6500 nop
00040410 <used1>:
.*: 03e00008 jr ra
.*: 00000000 nop
00040418 <used2>:
.*: 03e00008 jr ra
.*: 00000000 nop
00040420 <used3>:
.*: 03e00008 jr ra
.*: 00000000 nop
00040428 <used4>:
.*: 03e00008 jr ra
.*: 00000000 nop
00040430 <used5>:
.*: 03e00008 jr ra
.*: 00000000 nop
00040438 <used6>:
.*: 03e00008 jr ra
.*: 00000000 nop
00040440 <used7>:
.*: 03e00008 jr ra
.*: 00000000 nop
00040448 <used8>:
.*: 03e00008 jr ra
.*: 00000000 nop
00040450 <used9>:
.*: 03e00008 jr ra
.*: 00000000 nop
00040458 <used10>:
.*: 03e00008 jr ra
.*: 00000000 nop
00040460 <test_unused1>:
.*: .* jal .* <unused1>
00040464 <test_used1>:
.*: .* jalx .* <__call_used1>
00040468 <test_used3>:
.*: .* jalx .* <__call_used3>
0004046c <test_used7>:
.*: .* jalx .* <__call_used7>
00040470 <test_extern1>:
.*: .* jalx .* <__call_extern1>
00040474 <test_unused2>:
.*: .* jal .* <unused2>
00040478 <test_used2>:
.*: .* jalx .* <__call_fp_used2>
0004047c <test_used4>:
.*: .* jalx .* <__call_fp_used4>
00040480 <test_used8>:
.*: .* jalx .* <__call_fp_used8>
00040484 <test_extern2>:
.*: .* jalx .* <__call_fp_extern2>
#...
00040490 <test_unused3>:
.*: .* jal .* <unused3>
00040494 <test_used5>:
.*: .* jalx .* <__call_used5>
00040498 <test_used9>:
.*: .* jalx .* <__call_used9>
0004049c <test_extern3>:
.*: .* jalx .* <__call_extern3>
000404a0 <test_unused4>:
.*: .* jal .* <unused4>
000404a4 <test_used6>:
.*: .* jalx .* <__call_fp_used6>
000404a8 <test_used10>:
.*: .* jalx .* <__call_fp_used10>
000404ac <test_extern4>:
.*: .* jalx .* <__call_fp_extern4>
000404b0 <__call_used1>:
.*: 3c190004 lui t9,.*
.*: 27390410 addiu t9,t9,.*
.*: 03200008 jr t9
.*: 44846000 mtc1 a0,\$f12
000404c0 <__call_used3>:
.*: 3c190004 lui t9,.*
.*: 27390420 addiu t9,t9,.*
.*: 03200008 jr t9
.*: 44846000 mtc1 a0,\$f12
000404d0 <__call_used7>:
.*: 3c190004 lui t9,.*
.*: 27390440 addiu t9,t9,.*
.*: 03200008 jr t9
.*: 44846000 mtc1 a0,\$f12
000404e0 <__call_extern1>:
.*: 3c190004 lui t9,.*
.*: 27390650 addiu t9,t9,.*
.*: 03200008 jr t9
.*: 44846000 mtc1 a0,\$f12
000404f0 <__call_fp_used2>:
.*: 03e09025 move s2,ra
.*: 3c190004 lui t9,.*
.*: 27390418 addiu t9,t9,.*
.*: 0320f809 jalr t9
.*: 44846000 mtc1 a0,\$f12
.*: 44020000 mfc1 v0,\$f0
.*: 02400008 jr s2
.*: 00000000 nop
00040510 <__call_fp_used4>:
.*: 03e09025 move s2,ra
.*: 3c190004 lui t9,.*
.*: 27390428 addiu t9,t9,.*
.*: 0320f809 jalr t9
.*: 44846000 mtc1 a0,\$f12
.*: 44020000 mfc1 v0,\$f0
.*: 02400008 jr s2
.*: 00000000 nop
00040530 <__call_fp_used8>:
.*: 03e09025 move s2,ra
.*: 3c190004 lui t9,.*
.*: 27390448 addiu t9,t9,.*
.*: 0320f809 jalr t9
.*: 44846000 mtc1 a0,\$f12
.*: 44020000 mfc1 v0,\$f0
.*: 02400008 jr s2
.*: 00000000 nop
00040550 <__call_fp_extern2>:
.*: 03e09025 move s2,ra
.*: 3c190004 lui t9,.*
.*: 27390630 addiu t9,t9,.*
.*: 0320f809 jalr t9
.*: 44846000 mtc1 a0,\$f12
.*: 44020000 mfc1 v0,\$f0
.*: 02400008 jr s2
.*: 00000000 nop
00040570 <__call_used5>:
.*: 3c190004 lui t9,.*
.*: 27390430 addiu t9,t9,.*
.*: 03200008 jr t9
.*: 44846000 mtc1 a0,\$f12
00040580 <__call_used9>:
.*: 3c190004 lui t9,.*
.*: 27390450 addiu t9,t9,.*
.*: 03200008 jr t9
.*: 44846000 mtc1 a0,\$f12
00040590 <__call_extern3>:
.*: 3c190004 lui t9,.*
.*: 27390620 addiu t9,t9,.*
.*: 03200008 jr t9
.*: 44846000 mtc1 a0,\$f12
000405a0 <__call_fp_used6>:
.*: 03e09025 move s2,ra
.*: 3c190004 lui t9,.*
.*: 27390438 addiu t9,t9,.*
.*: 0320f809 jalr t9
.*: 44846000 mtc1 a0,\$f12
.*: 44020000 mfc1 v0,\$f0
.*: 02400008 jr s2
.*: 00000000 nop
000405c0 <__call_fp_used10>:
.*: 03e09025 move s2,ra
.*: 3c190004 lui t9,.*
.*: 27390458 addiu t9,t9,.*
.*: 0320f809 jalr t9
.*: 44846000 mtc1 a0,\$f12
.*: 44020000 mfc1 v0,\$f0
.*: 02400008 jr s2
.*: 00000000 nop
000405e0 <__call_fp_extern4>:
.*: 03e09025 move s2,ra
.*: 3c190004 lui t9,.*
.*: 27390640 addiu t9,t9,.*
.*: 0320f809 jalr t9
.*: 44846000 mtc1 a0,\$f12
.*: 44020000 mfc1 v0,\$f0
.*: 02400008 jr s2
.*: 00000000 nop
Disassembly of section \.plt:
00040600 <.*>:
.*: 3c1c0005 lui gp,0x5
.*: 8f990400 lw t9,1024\(gp\)
.*: 279c0400 addiu gp,gp,1024
.*: 031cc023 subu t8,t8,gp
.*: 03e07825 move t7,ra
.*: 0018c082 srl t8,t8,0x2
.*: 0320f809 jalr t9
.*: 2718fffe addiu t8,t8,-2
00040620 <extern3@plt>:
.*: 3c0f0005 lui t7,0x5
.*: 8df90408 lw t9,1032\(t7\)
.*: 25f80408 addiu t8,t7,1032
.*: 03200008 jr t9
00040630 <extern2@plt>:
.*: 3c0f0005 lui t7,0x5
.*: 8df9040c lw t9,1036\(t7\)
.*: 25f8040c addiu t8,t7,1036
.*: 03200008 jr t9
00040640 <extern4@plt>:
.*: 3c0f0005 lui t7,0x5
.*: 8df90410 lw t9,1040\(t7\)
.*: 25f80410 addiu t8,t7,1040
.*: 03200008 jr t9
00040650 <extern1@plt>:
.*: 3c0f0005 lui t7,0x5
.*: 8df90414 lw t9,1044\(t7\)
.*: 25f80414 addiu t8,t7,1044
.*: 03200008 jr t9
.*: 00000000 nop