aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorSimon Dardis <simon.dardis@imgtec.com>2015-08-12 17:06:35 +0100
committerRobert Suchanek <robert.suchanek@imgtec.com>2015-08-12 17:10:22 +0100
commit40fc1451c63d21a1448bb21e39a7b70ecb959213 (patch)
treea614e0a966ad575b5315d7dd97f633dd1adf30e3 /gas
parentb6dafabfb18e3ab207a1818ebe68e30337b5515d (diff)
downloadgdb-40fc1451c63d21a1448bb21e39a7b70ecb959213.zip
gdb-40fc1451c63d21a1448bb21e39a7b70ecb959213.tar.gz
gdb-40fc1451c63d21a1448bb21e39a7b70ecb959213.tar.bz2
[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.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-mips.c14
-rw-r--r--gas/testsuite/ChangeLog39
-rw-r--r--gas/testsuite/gas/mips/elf-rel23.d2
-rw-r--r--gas/testsuite/gas/mips/elf-rel23a.d2
-rw-r--r--gas/testsuite/gas/mips/elf-rel23b.d2
-rw-r--r--gas/testsuite/gas/mips/elf_e_flags1.d2
-rw-r--r--gas/testsuite/gas/mips/elf_e_flags2.d2
-rw-r--r--gas/testsuite/gas/mips/elf_e_flags3.d2
-rw-r--r--gas/testsuite/gas/mips/elf_e_flags4.d2
-rw-r--r--gas/testsuite/gas/mips/loc-swap-dis.d16
-rw-r--r--gas/testsuite/gas/mips/micromips-insn32.d172
-rw-r--r--gas/testsuite/gas/mips/micromips-noinsn32.d4
-rw-r--r--gas/testsuite/gas/mips/micromips-trap.d4
-rw-r--r--gas/testsuite/gas/mips/micromips.d4
-rw-r--r--gas/testsuite/gas/mips/micromips32-move.d14
-rw-r--r--gas/testsuite/gas/mips/micromips32-move.s6
-rw-r--r--gas/testsuite/gas/mips/mips-abi32-pic.d4
-rw-r--r--gas/testsuite/gas/mips/mips-abi32.d4
-rw-r--r--gas/testsuite/gas/mips/mips-gp32-fp32-pic.d4
-rw-r--r--gas/testsuite/gas/mips/mips-gp32-fp32.d4
-rw-r--r--gas/testsuite/gas/mips/mips-gp32-fp64-pic.d4
-rw-r--r--gas/testsuite/gas/mips/mips-gp32-fp64.d4
-rw-r--r--gas/testsuite/gas/mips/mips-gp64-fp32-pic.d2
-rw-r--r--gas/testsuite/gas/mips/mips-gp64-fp32.d2
-rw-r--r--gas/testsuite/gas/mips/mips-gp64-fp64-pic.d2
-rw-r--r--gas/testsuite/gas/mips/mips-gp64-fp64.d2
-rw-r--r--gas/testsuite/gas/mips/mips.exp4
-rw-r--r--gas/testsuite/gas/mips/mipsr6@loc-swap-dis.d16
-rw-r--r--gas/testsuite/gas/mips/move.d14
-rw-r--r--gas/testsuite/gas/mips/move.s4
-rw-r--r--gas/testsuite/gas/mips/tls-o32.d6
-rw-r--r--gas/testsuite/gas/mips/uld2-eb.d8
-rw-r--r--gas/testsuite/gas/mips/uld2-el.d8
-rw-r--r--gas/testsuite/gas/mips/ulw2-eb-ilocks.d8
-rw-r--r--gas/testsuite/gas/mips/ulw2-eb.d8
-rw-r--r--gas/testsuite/gas/mips/ulw2-el-ilocks.d8
-rw-r--r--gas/testsuite/gas/mips/ulw2-el.d9
38 files changed, 239 insertions, 179 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index e483f4f..aea5508 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
+
+ * 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.
+
2015-08-11 Jiong Wang <jiong.wang@arm.com>
* config/tc-aarch64.c (reloc_table): New relocation modifiers
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index ecff88b..74b7fb4 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -9325,8 +9325,7 @@ move_register (int dest, int source)
&& !(history[0].insn_mo->pinfo2 & INSN2_BRANCH_DELAY_32BIT))
macro_build (NULL, "move", "mp,mj", dest, source);
else
- macro_build (NULL, GPR_SIZE == 32 ? "addu" : "daddu", "d,v,t",
- dest, source, 0);
+ macro_build (NULL, "or", "d,v,t", dest, source, 0);
}
/* Emit an SVR4 PIC sequence to load address LOCAL into DEST, where
@@ -15886,7 +15885,7 @@ s_cpload (int ignore ATTRIBUTE_UNUSED)
daddu $gp, $gp, $reg1
If $reg2 is given, this results in:
- daddu $reg2, $gp, $0
+ or $reg2, $gp, $0
lui $gp, %hi(%neg(%gp_rel(label)))
addiu $gp, $gp, %lo(%neg(%gp_rel(label)))
daddu $gp, $gp, $reg1
@@ -15966,8 +15965,7 @@ s_cpsetup (int ignore ATTRIBUTE_UNUSED)
BFD_RELOC_LO16, SP);
}
else
- macro_build (NULL, "daddu", "d,v,t", mips_cpreturn_register,
- mips_gp_register, 0);
+ move_register (mips_cpreturn_register, mips_gp_register);
if (mips_in_shared || HAVE_64BIT_SYMBOLS)
{
@@ -16080,7 +16078,7 @@ s_cprestore (int ignore ATTRIBUTE_UNUSED)
ld $gp, offset($sp)
If a register $reg2 was given there, it results in:
- daddu $gp, $reg2, $0 */
+ or $gp, $reg2, $0 */
static void
s_cpreturn (int ignore ATTRIBUTE_UNUSED)
@@ -16118,8 +16116,8 @@ s_cpreturn (int ignore ATTRIBUTE_UNUSED)
macro_build (&ex, "ld", "t,o(b)", mips_gp_register, BFD_RELOC_LO16, SP);
}
else
- macro_build (NULL, "daddu", "d,v,t", mips_gp_register,
- mips_cpreturn_register, 0);
+ move_register (mips_gp_register, mips_cpreturn_register);
+
macro_end ();
mips_assembling_insn = FALSE;
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 958bf71..f8ea3a2 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,42 @@
+2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
+
+ * 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.
+
2015-08-11 Jiong Wang <jiong.wang@arm.com>
* gas/aarch64/reloc-dtprel_lo12-1.s: New testcase.
diff --git a/gas/testsuite/gas/mips/elf-rel23.d b/gas/testsuite/gas/mips/elf-rel23.d
index 10b53ac..85cca8b 100644
--- a/gas/testsuite/gas/mips/elf-rel23.d
+++ b/gas/testsuite/gas/mips/elf-rel23.d
@@ -7,7 +7,7 @@
Disassembly of section \.text:
0+00 <.*>:
-.*: 0380282d move \$5,\$28
+.*: 03802825 move \$5,\$28
.*: 3c1c0000 lui \$28,0x0
.*: R_MIPS_GPREL16 foo
.*: R_MIPS_SUB \*ABS\*
diff --git a/gas/testsuite/gas/mips/elf-rel23a.d b/gas/testsuite/gas/mips/elf-rel23a.d
index fb8737b..a3569e9 100644
--- a/gas/testsuite/gas/mips/elf-rel23a.d
+++ b/gas/testsuite/gas/mips/elf-rel23a.d
@@ -8,7 +8,7 @@
Disassembly of section \.text:
0+00 <.*>:
-.*: 0380282d move \$5,\$28
+.*: 03802825 move \$5,\$28
.*: 3c1c0000 lui \$28,0x0
.*: R_MIPS_GPREL16 foo
.*: R_MIPS_SUB \*ABS\*
diff --git a/gas/testsuite/gas/mips/elf-rel23b.d b/gas/testsuite/gas/mips/elf-rel23b.d
index 88c9897..db9ba8a 100644
--- a/gas/testsuite/gas/mips/elf-rel23b.d
+++ b/gas/testsuite/gas/mips/elf-rel23b.d
@@ -8,7 +8,7 @@
Disassembly of section \.text:
0+00 <.*>:
-.*: 0380282d move \$5,\$28
+.*: 03802825 move \$5,\$28
.*: 3c1c0000 lui \$28,0x0
.*: R_MIPS_HI16 __gnu_local_gp
.*: 279c0000 addiu \$28,\$28,0
diff --git a/gas/testsuite/gas/mips/elf_e_flags1.d b/gas/testsuite/gas/mips/elf_e_flags1.d
index cc5af56..71eb536 100644
--- a/gas/testsuite/gas/mips/elf_e_flags1.d
+++ b/gas/testsuite/gas/mips/elf_e_flags1.d
@@ -21,7 +21,7 @@ Disassembly of section .text:
14: afbf0020 sw ra,32\(sp\)
18: 0c000000 jal 0 <foo>
1c: 00000000 nop
- 20: 0000102[1d] move v0,zero
+ 20: 00001025 move v0,zero
24: 8fbf0020 lw ra,32\(sp\)
28: 00000000 nop
2c: 03e00008 jr ra
diff --git a/gas/testsuite/gas/mips/elf_e_flags2.d b/gas/testsuite/gas/mips/elf_e_flags2.d
index fceb547..c207e73 100644
--- a/gas/testsuite/gas/mips/elf_e_flags2.d
+++ b/gas/testsuite/gas/mips/elf_e_flags2.d
@@ -20,7 +20,7 @@ Disassembly of section .text:
10: afbf0020 sw ra,32\(sp\)
14: 0c000000 jal 0 <foo>
18: 00000000 nop
- 1c: 0000102[1d] move v0,zero
+ 1c: 00001025 move v0,zero
20: 8fbf0020 lw ra,32\(sp\)
24: 00000000 nop
28: 03e00008 jr ra
diff --git a/gas/testsuite/gas/mips/elf_e_flags3.d b/gas/testsuite/gas/mips/elf_e_flags3.d
index 4a72d98..bff2354 100644
--- a/gas/testsuite/gas/mips/elf_e_flags3.d
+++ b/gas/testsuite/gas/mips/elf_e_flags3.d
@@ -20,7 +20,7 @@ Disassembly of section .text:
10: afbf0020 sw ra,32\(sp\)
14: 0c000000 jal 0 <foo>
18: 00000000 nop
- 1c: 0000102[1d] move v0,zero
+ 1c: 00001025 move v0,zero
20: 8fbf0020 lw ra,32\(sp\)
24: 00000000 nop
28: 03e00008 jr ra
diff --git a/gas/testsuite/gas/mips/elf_e_flags4.d b/gas/testsuite/gas/mips/elf_e_flags4.d
index 4a72d98..bff2354 100644
--- a/gas/testsuite/gas/mips/elf_e_flags4.d
+++ b/gas/testsuite/gas/mips/elf_e_flags4.d
@@ -20,7 +20,7 @@ Disassembly of section .text:
10: afbf0020 sw ra,32\(sp\)
14: 0c000000 jal 0 <foo>
18: 00000000 nop
- 1c: 0000102[1d] move v0,zero
+ 1c: 00001025 move v0,zero
20: 8fbf0020 lw ra,32\(sp\)
24: 00000000 nop
28: 03e00008 jr ra
diff --git a/gas/testsuite/gas/mips/loc-swap-dis.d b/gas/testsuite/gas/mips/loc-swap-dis.d
index c4601b9..1137d53 100644
--- a/gas/testsuite/gas/mips/loc-swap-dis.d
+++ b/gas/testsuite/gas/mips/loc-swap-dis.d
@@ -8,26 +8,26 @@
.*: +file format .*mips.*
Disassembly of section \.text:
-[0-9a-f]+ <[^>]*> 02002021 move a0,s0
+[0-9a-f]+ <[^>]*> 02002025 move a0,s0
[0-9a-f]+ <[^>]*> 00800008 jr a0
[0-9a-f]+ <[^>]*> 00000000 nop
[0-9a-f]+ <[^>]*> 00800008 jr a0
-[0-9a-f]+ <[^>]*> 0200f821 move ra,s0
+[0-9a-f]+ <[^>]*> 0200f825 move ra,s0
[0-9a-f]+ <[^>]*> 03e00008 jr ra
-[0-9a-f]+ <[^>]*> 02002021 move a0,s0
-[0-9a-f]+ <[^>]*> 0200f821 move ra,s0
+[0-9a-f]+ <[^>]*> 02002025 move a0,s0
+[0-9a-f]+ <[^>]*> 0200f825 move ra,s0
[0-9a-f]+ <[^>]*> 03e00008 jr ra
[0-9a-f]+ <[^>]*> 00000000 nop
-[0-9a-f]+ <[^>]*> 02002021 move a0,s0
+[0-9a-f]+ <[^>]*> 02002025 move a0,s0
[0-9a-f]+ <[^>]*> 0080f809 jalr a0
[0-9a-f]+ <[^>]*> 00000000 nop
-[0-9a-f]+ <[^>]*> 0200f821 move ra,s0
+[0-9a-f]+ <[^>]*> 0200f825 move ra,s0
[0-9a-f]+ <[^>]*> 0080f809 jalr a0
[0-9a-f]+ <[^>]*> 00000000 nop
[0-9a-f]+ <[^>]*> 0c000000 jal 0+0000 <foo>
[ ]*[0-9a-f]+: R_MIPS_26 bar
-[0-9a-f]+ <[^>]*> 02002021 move a0,s0
-[0-9a-f]+ <[^>]*> 0200f821 move ra,s0
+[0-9a-f]+ <[^>]*> 02002025 move a0,s0
+[0-9a-f]+ <[^>]*> 0200f825 move ra,s0
[0-9a-f]+ <[^>]*> 0c000000 jal 0+0000 <foo>
[ ]*[0-9a-f]+: R_MIPS_26 bar
[0-9a-f]+ <[^>]*> 00000000 nop
diff --git a/gas/testsuite/gas/mips/micromips-insn32.d b/gas/testsuite/gas/mips/micromips-insn32.d
index c0ff2db..a56b38f 100644
--- a/gas/testsuite/gas/mips/micromips-insn32.d
+++ b/gas/testsuite/gas/mips/micromips-insn32.d
@@ -75,35 +75,35 @@ Disassembly of section \.text:
[ 0-9a-f]+: 3040 ffff li v0,-1
[ 0-9a-f]+: 41a2 1234 lui v0,0x1234
[ 0-9a-f]+: 5042 5678 ori v0,v0,0x5678
-[ 0-9a-f]+: 0016 0150 move zero,s6
-[ 0-9a-f]+: 0016 1150 move v0,s6
-[ 0-9a-f]+: 0016 1950 move v1,s6
-[ 0-9a-f]+: 0016 2150 move a0,s6
-[ 0-9a-f]+: 0016 2950 move a1,s6
-[ 0-9a-f]+: 0016 3150 move a2,s6
-[ 0-9a-f]+: 0016 3950 move a3,s6
-[ 0-9a-f]+: 0016 4150 move t0,s6
-[ 0-9a-f]+: 0016 4950 move t1,s6
-[ 0-9a-f]+: 0016 5150 move t2,s6
-[ 0-9a-f]+: 0016 f150 move s8,s6
-[ 0-9a-f]+: 0016 f950 move ra,s6
-[ 0-9a-f]+: 0000 0150 move zero,zero
-[ 0-9a-f]+: 0002 0150 move zero,v0
-[ 0-9a-f]+: 0003 0150 move zero,v1
-[ 0-9a-f]+: 0004 0150 move zero,a0
-[ 0-9a-f]+: 0005 0150 move zero,a1
-[ 0-9a-f]+: 0006 0150 move zero,a2
-[ 0-9a-f]+: 0007 0150 move zero,a3
-[ 0-9a-f]+: 0008 0150 move zero,t0
-[ 0-9a-f]+: 0009 0150 move zero,t1
-[ 0-9a-f]+: 000a 0150 move zero,t2
-[ 0-9a-f]+: 001e 0150 move zero,s8
-[ 0-9a-f]+: 001f 0150 move zero,ra
-[ 0-9a-f]+: 0002 b150 move s6,v0
-[ 0-9a-f]+: 0016 1150 move v0,s6
+[ 0-9a-f]+: 0016 0290 move zero,s6
+[ 0-9a-f]+: 0016 1290 move v0,s6
+[ 0-9a-f]+: 0016 1a90 move v1,s6
+[ 0-9a-f]+: 0016 2290 move a0,s6
+[ 0-9a-f]+: 0016 2a90 move a1,s6
+[ 0-9a-f]+: 0016 3290 move a2,s6
+[ 0-9a-f]+: 0016 3a90 move a3,s6
+[ 0-9a-f]+: 0016 4290 move t0,s6
+[ 0-9a-f]+: 0016 4a90 move t1,s6
+[ 0-9a-f]+: 0016 5290 move t2,s6
+[ 0-9a-f]+: 0016 f290 move s8,s6
+[ 0-9a-f]+: 0016 fa90 move ra,s6
+[ 0-9a-f]+: 0000 0290 move zero,zero
+[ 0-9a-f]+: 0002 0290 move zero,v0
+[ 0-9a-f]+: 0003 0290 move zero,v1
+[ 0-9a-f]+: 0004 0290 move zero,a0
+[ 0-9a-f]+: 0005 0290 move zero,a1
+[ 0-9a-f]+: 0006 0290 move zero,a2
+[ 0-9a-f]+: 0007 0290 move zero,a3
+[ 0-9a-f]+: 0008 0290 move zero,t0
+[ 0-9a-f]+: 0009 0290 move zero,t1
+[ 0-9a-f]+: 000a 0290 move zero,t2
+[ 0-9a-f]+: 001e 0290 move zero,s8
+[ 0-9a-f]+: 001f 0290 move zero,ra
+[ 0-9a-f]+: 0002 b290 move s6,v0
+[ 0-9a-f]+: 0016 1290 move v0,s6
[ 0-9a-f]+: 9400 fffe b [0-9a-f]+ <test\+0x[0-9a-f]+>
[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 test
-[ 0-9a-f]+: 0002 b150 move s6,v0
+[ 0-9a-f]+: 0002 b290 move s6,v0
[ 0-9a-f]+: 9400 fffe b [0-9a-f]+ <test\+0x[0-9a-f]+>
[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 test
[ 0-9a-f]+: 0000 0000 nop
@@ -123,13 +123,13 @@ Disassembly of section \.text:
[ 0-9a-f]+: 0000 0000 nop
[ 0-9a-f]+: 4043 fffe bgez v1,[0-9a-f]+ <.*\+0x[0-9a-f]+>
[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 .*
-[ 0-9a-f]+: 0003 1150 move v0,v1
+[ 0-9a-f]+: 0003 1290 move v0,v1
[ 0-9a-f]+: 0060 1190 neg v0,v1
[0-9a-f]+ <.*>:
[ 0-9a-f]+: 4044 fffe bgez a0,[0-9a-f]+ <.*>
[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 .*
-[ 0-9a-f]+: 0004 1150 move v0,a0
+[ 0-9a-f]+: 0004 1290 move v0,a0
[ 0-9a-f]+: 0080 1190 neg v0,a0
[0-9a-f]+ <.*>:
@@ -894,7 +894,7 @@ Disassembly of section \.text:
[0-9a-f]+ <.*>:
[ 0-9a-f]+: 0002 1d7c mflo v0
[ 0-9a-f]+: 0007 0007 break 0x7
-[ 0-9a-f]+: 0004 1950 move v1,a0
+[ 0-9a-f]+: 0004 1a90 move v1,a0
[ 0-9a-f]+: 0080 1990 neg v1,a0
[ 0-9a-f]+: 3020 0002 li at,2
[ 0-9a-f]+: 0024 ab3c div zero,a0,at
@@ -918,7 +918,7 @@ Disassembly of section \.text:
[0-9a-f]+ <.*>:
[ 0-9a-f]+: 0002 1d7c mflo v0
[ 0-9a-f]+: 0007 0007 break 0x7
-[ 0-9a-f]+: 0004 1950 move v1,a0
+[ 0-9a-f]+: 0004 1a90 move v1,a0
[ 0-9a-f]+: 3020 ffff li at,-1
[ 0-9a-f]+: 0024 bb3c divu zero,a0,at
[ 0-9a-f]+: 0003 1d7c mflo v1
@@ -2270,8 +2270,8 @@ Disassembly of section \.text:
[0-9a-f]+ <.*>:
[ 0-9a-f]+: 0002 0d7c mfhi v0
[ 0-9a-f]+: 0007 0007 break 0x7
-[ 0-9a-f]+: 0000 1950 move v1,zero
-[ 0-9a-f]+: 0000 1950 move v1,zero
+[ 0-9a-f]+: 0000 1a90 move v1,zero
+[ 0-9a-f]+: 0000 1a90 move v1,zero
[ 0-9a-f]+: 3020 0002 li at,2
[ 0-9a-f]+: 0024 ab3c div zero,a0,at
[ 0-9a-f]+: 0003 0d7c mfhi v1
@@ -2306,7 +2306,7 @@ Disassembly of section \.text:
[0-9a-f]+ <.*>:
[ 0-9a-f]+: 0002 0d7c mfhi v0
[ 0-9a-f]+: 0007 0007 break 0x7
-[ 0-9a-f]+: 0000 1950 move v1,zero
+[ 0-9a-f]+: 0000 1a90 move v1,zero
[ 0-9a-f]+: 3020 ffff li at,-1
[ 0-9a-f]+: 0024 bb3c divu zero,a0,at
[ 0-9a-f]+: 0003 0d7c mfhi v1
@@ -6456,7 +6456,7 @@ Disassembly of section \.text:
[0-9a-f]+ <test_mips64>:
[ 0-9a-f]+: 4043 fffe bgez v1,[0-9a-f]+ <test_mips64>
[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 .*
-[ 0-9a-f]+: 5803 1150 move v0,v1
+[ 0-9a-f]+: 0003 1290 move v0,v1
[ 0-9a-f]+: 5860 1190 dneg v0,v1
[0-9a-f]+ <.*>:
@@ -6555,7 +6555,7 @@ Disassembly of section \.text:
[0-9a-f]+ <.*>:
[ 0-9a-f]+: 0002 1d7c mflo v0
[ 0-9a-f]+: 0007 0007 break 0x7
-[ 0-9a-f]+: 5804 1950 move v1,a0
+[ 0-9a-f]+: 0004 1a90 move v1,a0
[ 0-9a-f]+: 5880 1990 dneg v1,a0
[ 0-9a-f]+: 3020 0002 li at,2
[ 0-9a-f]+: 5824 ab3c ddiv zero,a0,at
@@ -6579,7 +6579,7 @@ Disassembly of section \.text:
[0-9a-f]+ <.*>:
[ 0-9a-f]+: 0002 1d7c mflo v0
[ 0-9a-f]+: 0007 0007 break 0x7
-[ 0-9a-f]+: 5804 1950 move v1,a0
+[ 0-9a-f]+: 0004 1a90 move v1,a0
[ 0-9a-f]+: 3020 ffff li at,-1
[ 0-9a-f]+: 5824 bb3c ddivu zero,a0,at
[ 0-9a-f]+: 0003 1d7c mflo v1
@@ -6966,8 +6966,8 @@ Disassembly of section \.text:
[0-9a-f]+ <.*>:
[ 0-9a-f]+: 0007 0007 break 0x7
-[ 0-9a-f]+: 5800 1950 move v1,zero
-[ 0-9a-f]+: 5800 1950 move v1,zero
+[ 0-9a-f]+: 0000 1a90 move v1,zero
+[ 0-9a-f]+: 0000 1a90 move v1,zero
[ 0-9a-f]+: 3020 0002 li at,2
[ 0-9a-f]+: 5824 ab3c ddiv zero,a0,at
[ 0-9a-f]+: 0003 0d7c mfhi v1
@@ -7010,8 +7010,8 @@ Disassembly of section \.text:
[0-9a-f]+ <.*>:
[ 0-9a-f]+: 0000 0d7c mfhi zero
[ 0-9a-f]+: 0007 0007 break 0x7
-[ 0-9a-f]+: 5800 1950 move v1,zero
-[ 0-9a-f]+: 5800 1950 move v1,zero
+[ 0-9a-f]+: 0000 1a90 move v1,zero
+[ 0-9a-f]+: 0000 1a90 move v1,zero
[ 0-9a-f]+: 3020 0002 li at,2
[ 0-9a-f]+: 5824 ab3c ddiv zero,a0,at
[ 0-9a-f]+: 0003 0d7c mfhi v1
@@ -7032,7 +7032,7 @@ Disassembly of section \.text:
[0-9a-f]+ <.*>:
[ 0-9a-f]+: 0000 0d7c mfhi zero
[ 0-9a-f]+: 0007 0007 break 0x7
-[ 0-9a-f]+: 5800 1950 move v1,zero
+[ 0-9a-f]+: 0000 1a90 move v1,zero
[ 0-9a-f]+: 3020 ffff li at,-1
[ 0-9a-f]+: 5824 bb3c ddivu zero,a0,at
[ 0-9a-f]+: 0003 0d7c mfhi v1
@@ -7673,50 +7673,50 @@ Disassembly of section \.text:
[ 0-9a-f]+: 78c0 0000 addiu s1,\$pc,-16777216
[0-9a-f]+ <test_spec107>:
-[ 0-9a-f]+: 5800 2950 move a1,zero
-[ 0-9a-f]+: 5800 3150 move a2,zero
-[ 0-9a-f]+: 5800 2950 move a1,zero
-[ 0-9a-f]+: 5800 3950 move a3,zero
-[ 0-9a-f]+: 5800 3150 move a2,zero
-[ 0-9a-f]+: 5800 3950 move a3,zero
-[ 0-9a-f]+: 5800 2150 move a0,zero
-[ 0-9a-f]+: 5800 a950 move s5,zero
-[ 0-9a-f]+: 5800 2150 move a0,zero
-[ 0-9a-f]+: 5800 b150 move s6,zero
-[ 0-9a-f]+: 5800 2150 move a0,zero
-[ 0-9a-f]+: 5800 2950 move a1,zero
-[ 0-9a-f]+: 5800 2150 move a0,zero
-[ 0-9a-f]+: 5800 3150 move a2,zero
-[ 0-9a-f]+: 5800 2150 move a0,zero
-[ 0-9a-f]+: 5800 3950 move a3,zero
-[ 0-9a-f]+: 5811 2150 move a0,s1
-[ 0-9a-f]+: 5800 3950 move a3,zero
-[ 0-9a-f]+: 5802 2150 move a0,v0
-[ 0-9a-f]+: 5800 3950 move a3,zero
-[ 0-9a-f]+: 5803 2150 move a0,v1
-[ 0-9a-f]+: 5800 3950 move a3,zero
-[ 0-9a-f]+: 5810 2150 move a0,s0
-[ 0-9a-f]+: 5800 3950 move a3,zero
-[ 0-9a-f]+: 5812 2150 move a0,s2
-[ 0-9a-f]+: 5800 3950 move a3,zero
-[ 0-9a-f]+: 5813 2150 move a0,s3
-[ 0-9a-f]+: 5800 3950 move a3,zero
-[ 0-9a-f]+: 5814 2150 move a0,s4
-[ 0-9a-f]+: 5800 3950 move a3,zero
-[ 0-9a-f]+: 5814 2150 move a0,s4
-[ 0-9a-f]+: 5811 3950 move a3,s1
-[ 0-9a-f]+: 5814 2150 move a0,s4
-[ 0-9a-f]+: 5802 3950 move a3,v0
-[ 0-9a-f]+: 5814 2150 move a0,s4
-[ 0-9a-f]+: 5803 3950 move a3,v1
-[ 0-9a-f]+: 5814 2150 move a0,s4
-[ 0-9a-f]+: 5810 3950 move a3,s0
-[ 0-9a-f]+: 5814 2150 move a0,s4
-[ 0-9a-f]+: 5812 3950 move a3,s2
-[ 0-9a-f]+: 5814 2150 move a0,s4
-[ 0-9a-f]+: 5813 3950 move a3,s3
-[ 0-9a-f]+: 5814 2150 move a0,s4
-[ 0-9a-f]+: 5814 3950 move a3,s4
+[ 0-9a-f]+: 0000 2a90 move a1,zero
+[ 0-9a-f]+: 0000 3290 move a2,zero
+[ 0-9a-f]+: 0000 2a90 move a1,zero
+[ 0-9a-f]+: 0000 3a90 move a3,zero
+[ 0-9a-f]+: 0000 3290 move a2,zero
+[ 0-9a-f]+: 0000 3a90 move a3,zero
+[ 0-9a-f]+: 0000 2290 move a0,zero
+[ 0-9a-f]+: 0000 aa90 move s5,zero
+[ 0-9a-f]+: 0000 2290 move a0,zero
+[ 0-9a-f]+: 0000 b290 move s6,zero
+[ 0-9a-f]+: 0000 2290 move a0,zero
+[ 0-9a-f]+: 0000 2a90 move a1,zero
+[ 0-9a-f]+: 0000 2290 move a0,zero
+[ 0-9a-f]+: 0000 3290 move a2,zero
+[ 0-9a-f]+: 0000 2290 move a0,zero
+[ 0-9a-f]+: 0000 3a90 move a3,zero
+[ 0-9a-f]+: 0011 2290 move a0,s1
+[ 0-9a-f]+: 0000 3a90 move a3,zero
+[ 0-9a-f]+: 0002 2290 move a0,v0
+[ 0-9a-f]+: 0000 3a90 move a3,zero
+[ 0-9a-f]+: 0003 2290 move a0,v1
+[ 0-9a-f]+: 0000 3a90 move a3,zero
+[ 0-9a-f]+: 0010 2290 move a0,s0
+[ 0-9a-f]+: 0000 3a90 move a3,zero
+[ 0-9a-f]+: 0012 2290 move a0,s2
+[ 0-9a-f]+: 0000 3a90 move a3,zero
+[ 0-9a-f]+: 0013 2290 move a0,s3
+[ 0-9a-f]+: 0000 3a90 move a3,zero
+[ 0-9a-f]+: 0014 2290 move a0,s4
+[ 0-9a-f]+: 0000 3a90 move a3,zero
+[ 0-9a-f]+: 0014 2290 move a0,s4
+[ 0-9a-f]+: 0011 3a90 move a3,s1
+[ 0-9a-f]+: 0014 2290 move a0,s4
+[ 0-9a-f]+: 0002 3a90 move a3,v0
+[ 0-9a-f]+: 0014 2290 move a0,s4
+[ 0-9a-f]+: 0003 3a90 move a3,v1
+[ 0-9a-f]+: 0014 2290 move a0,s4
+[ 0-9a-f]+: 0010 3a90 move a3,s0
+[ 0-9a-f]+: 0014 2290 move a0,s4
+[ 0-9a-f]+: 0012 3a90 move a3,s2
+[ 0-9a-f]+: 0014 2290 move a0,s4
+[ 0-9a-f]+: 0013 3a90 move a3,s3
+[ 0-9a-f]+: 0014 2290 move a0,s4
+[ 0-9a-f]+: 0014 3a90 move a3,s4
[ 0-9a-f]+: 4060 fffe bal [0-9a-f]+ <.*\+0x[0-9a-f]+>
[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 test_spec107
[ 0-9a-f]+: 0000 0000 nop
diff --git a/gas/testsuite/gas/mips/micromips-noinsn32.d b/gas/testsuite/gas/mips/micromips-noinsn32.d
index 5bbaab1..3b4a795 100644
--- a/gas/testsuite/gas/mips/micromips-noinsn32.d
+++ b/gas/testsuite/gas/mips/micromips-noinsn32.d
@@ -100,10 +100,10 @@ Disassembly of section \.text:
[ 0-9a-f]+: 0c1e move zero,s8
[ 0-9a-f]+: 0c1f move zero,ra
[ 0-9a-f]+: 0ec2 move s6,v0
-[ 0-9a-f]+: 0016 1150 move v0,s6
+[ 0-9a-f]+: 0016 1290 move v0,s6
[ 0-9a-f]+: cfff b [0-9a-f]+ <test\+0x[0-9a-f]+>
[ ]*[0-9a-f]+: R_MICROMIPS_PC10_S1 test
-[ 0-9a-f]+: 0002 b150 move s6,v0
+[ 0-9a-f]+: 0002 b290 move s6,v0
[ 0-9a-f]+: 9400 fffe b [0-9a-f]+ <test\+0x[0-9a-f]+>
[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 test
[ 0-9a-f]+: 0c00 nop
diff --git a/gas/testsuite/gas/mips/micromips-trap.d b/gas/testsuite/gas/mips/micromips-trap.d
index cfb0979..8f33d9b 100644
--- a/gas/testsuite/gas/mips/micromips-trap.d
+++ b/gas/testsuite/gas/mips/micromips-trap.d
@@ -103,10 +103,10 @@ Disassembly of section \.text:
[ 0-9a-f]+: 0ec2 move s6,v0
[ 0-9a-f]+: 0c56 move v0,s6
[ 0-9a-f]+: 0ec2 move s6,v0
-[ 0-9a-f]+: 0016 1150 move v0,s6
+[ 0-9a-f]+: 0016 1290 move v0,s6
[ 0-9a-f]+: cfff b [0-9a-f]+ <test\+0x[0-9a-f]+>
[ ]*[0-9a-f]+: R_MICROMIPS_PC10_S1 test
-[ 0-9a-f]+: 0002 b150 move s6,v0
+[ 0-9a-f]+: 0002 b290 move s6,v0
[ 0-9a-f]+: cfff b [0-9a-f]+ <test\+0x[0-9a-f]+>
[ ]*[0-9a-f]+: R_MICROMIPS_PC10_S1 test
[ 0-9a-f]+: 0c00 nop
diff --git a/gas/testsuite/gas/mips/micromips.d b/gas/testsuite/gas/mips/micromips.d
index e262663..8801c56 100644
--- a/gas/testsuite/gas/mips/micromips.d
+++ b/gas/testsuite/gas/mips/micromips.d
@@ -103,10 +103,10 @@ Disassembly of section \.text:
[ 0-9a-f]+: 0ec2 move s6,v0
[ 0-9a-f]+: 0c56 move v0,s6
[ 0-9a-f]+: 0ec2 move s6,v0
-[ 0-9a-f]+: 0016 1150 move v0,s6
+[ 0-9a-f]+: 0016 1290 move v0,s6
[ 0-9a-f]+: cfff b [0-9a-f]+ <test\+0x[0-9a-f]+>
[ ]*[0-9a-f]+: R_MICROMIPS_PC10_S1 test
-[ 0-9a-f]+: 0002 b150 move s6,v0
+[ 0-9a-f]+: 0002 b290 move s6,v0
[ 0-9a-f]+: cfff b [0-9a-f]+ <test\+0x[0-9a-f]+>
[ ]*[0-9a-f]+: R_MICROMIPS_PC10_S1 test
[ 0-9a-f]+: 0c00 nop
diff --git a/gas/testsuite/gas/mips/micromips32-move.d b/gas/testsuite/gas/mips/micromips32-move.d
new file mode 100644
index 0000000..1a30f06
--- /dev/null
+++ b/gas/testsuite/gas/mips/micromips32-move.d
@@ -0,0 +1,14 @@
+#objdump: -dr -m mips:micromips
+#name: microMIPS insn32 move test
+#source: micromips32-move.s
+
+# Check objdump's disassembly of the move menomic for addu, daddu and or.
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+0+ <.*>:
+ 0: 001f 6a90 move t5,ra
+ 4: 001f 6950 move t5,ra
+ 8: 581f 6950 move t5,ra
+ c: 001f 6a90 move t5,ra
diff --git a/gas/testsuite/gas/mips/micromips32-move.s b/gas/testsuite/gas/mips/micromips32-move.s
new file mode 100644
index 0000000..a94cfe4
--- /dev/null
+++ b/gas/testsuite/gas/mips/micromips32-move.s
@@ -0,0 +1,6 @@
+ .set micromips
+ .set insn32
+ move $13, $31
+ addu $13, $31, $0
+ daddu $13, $31, $0
+ or $13, $31, $0
diff --git a/gas/testsuite/gas/mips/mips-abi32-pic.d b/gas/testsuite/gas/mips/mips-abi32-pic.d
index fd18bf8..94f2acc 100644
--- a/gas/testsuite/gas/mips/mips-abi32-pic.d
+++ b/gas/testsuite/gas/mips/mips-abi32-pic.d
@@ -80,7 +80,7 @@ Disassembly of section .text:
118: a8240000 swl a0,0\(at\)
11c: b8240003 swr a0,3\(at\)
120: 3c043ff0 lui a0,0x3ff0
- 124: 00002821 move a1,zero
+ 124: 00002825 move a1,zero
128: 8f810000 lw at,0\(gp\)
12c: 8c240000 lw a0,0\(at\)
130: 8c250004 lw a1,4\(at\)
@@ -93,7 +93,7 @@ Disassembly of section .text:
14c: 2c840001 sltiu a0,a0,1
150: 24a40064 addiu a0,a1,100
154: 0004202b sltu a0,zero,a0
- 158: 00a02021 move a0,a1
+ 158: 00a02025 move a0,a1
0+015c <[^>]*>:
...
diff --git a/gas/testsuite/gas/mips/mips-abi32.d b/gas/testsuite/gas/mips/mips-abi32.d
index 51ab40c..0907b84 100644
--- a/gas/testsuite/gas/mips/mips-abi32.d
+++ b/gas/testsuite/gas/mips/mips-abi32.d
@@ -60,7 +60,7 @@ Disassembly of section .text:
c8: a8240000 swl a0,0\(at\)
cc: b8240003 swr a0,3\(at\)
d0: 3c043ff0 lui a0,0x3ff0
- d4: 00002821 move a1,zero
+ d4: 00002825 move a1,zero
d8: 3c010000 lui at,0x0
dc: 8c240000 lw a0,0\(at\)
e0: 8c250004 lw a1,4\(at\)
@@ -72,7 +72,7 @@ Disassembly of section .text:
f8: 2c840001 sltiu a0,a0,1
fc: 24a40064 addiu a0,a1,100
100: 0004202b sltu a0,zero,a0
- 104: 00a02021 move a0,a1
+ 104: 00a02025 move a0,a1
0+0108 <[^>]*>:
...
diff --git a/gas/testsuite/gas/mips/mips-gp32-fp32-pic.d b/gas/testsuite/gas/mips/mips-gp32-fp32-pic.d
index 3fb84e9..73b0178 100644
--- a/gas/testsuite/gas/mips/mips-gp32-fp32-pic.d
+++ b/gas/testsuite/gas/mips/mips-gp32-fp32-pic.d
@@ -80,7 +80,7 @@ Disassembly of section .text:
118: a8240000 swl a0,0\(at\)
11c: b8240003 swr a0,3\(at\)
120: 3c043ff0 lui a0,0x3ff0
- 124: 00002821 move a1,zero
+ 124: 00002825 move a1,zero
128: 8f810000 lw at,0\(gp\)
12c: 8c240000 lw a0,0\(at\)
130: 8c250004 lw a1,4\(at\)
@@ -93,7 +93,7 @@ Disassembly of section .text:
14c: 2c840001 sltiu a0,a0,1
150: 24a40064 addiu a0,a1,100
154: 0004202b sltu a0,zero,a0
- 158: 00a02021 move a0,a1
+ 158: 00a02025 move a0,a1
0+015c <[^>]*>:
...
diff --git a/gas/testsuite/gas/mips/mips-gp32-fp32.d b/gas/testsuite/gas/mips/mips-gp32-fp32.d
index 82e3828..5cd8f70 100644
--- a/gas/testsuite/gas/mips/mips-gp32-fp32.d
+++ b/gas/testsuite/gas/mips/mips-gp32-fp32.d
@@ -60,7 +60,7 @@ Disassembly of section .text:
c8: a8240000 swl a0,0\(at\)
cc: b8240003 swr a0,3\(at\)
d0: 3c043ff0 lui a0,0x3ff0
- d4: 00002821 move a1,zero
+ d4: 00002825 move a1,zero
d8: 3c010000 lui at,0x0
dc: 8c240000 lw a0,0\(at\)
e0: 8c250004 lw a1,4\(at\)
@@ -72,7 +72,7 @@ Disassembly of section .text:
f8: 2c840001 sltiu a0,a0,1
fc: 24a40064 addiu a0,a1,100
100: 0004202b sltu a0,zero,a0
- 104: 00a02021 move a0,a1
+ 104: 00a02025 move a0,a1
0+0108 <[^>]*>:
...
diff --git a/gas/testsuite/gas/mips/mips-gp32-fp64-pic.d b/gas/testsuite/gas/mips/mips-gp32-fp64-pic.d
index 3ebbe3f..1e4606c 100644
--- a/gas/testsuite/gas/mips/mips-gp32-fp64-pic.d
+++ b/gas/testsuite/gas/mips/mips-gp32-fp64-pic.d
@@ -81,7 +81,7 @@ Disassembly of section .text:
118: a8240000 swl a0,0\(at\)
11c: b8240003 swr a0,3\(at\)
120: 3c043ff0 lui a0,0x3ff0
- 124: 00002821 move a1,zero
+ 124: 00002825 move a1,zero
128: 8f810000 lw at,0\(gp\)
12c: 8c240000 lw a0,0\(at\)
130: 8c250004 lw a1,4\(at\)
@@ -93,7 +93,7 @@ Disassembly of section .text:
148: 2c840001 sltiu a0,a0,1
14c: 24a40064 addiu a0,a1,100
150: 0004202b sltu a0,zero,a0
- 154: 00a02021 move a0,a1
+ 154: 00a02025 move a0,a1
158: 46231040 add.d \$f1,\$f2,\$f3
0+015c <[^>]*>:
diff --git a/gas/testsuite/gas/mips/mips-gp32-fp64.d b/gas/testsuite/gas/mips/mips-gp32-fp64.d
index 2181bb1..6d0b19e 100644
--- a/gas/testsuite/gas/mips/mips-gp32-fp64.d
+++ b/gas/testsuite/gas/mips/mips-gp32-fp64.d
@@ -61,7 +61,7 @@ Disassembly of section .text:
c8: a8240000 swl a0,0\(at\)
cc: b8240003 swr a0,3\(at\)
d0: 3c043ff0 lui a0,0x3ff0
- d4: 00002821 move a1,zero
+ d4: 00002825 move a1,zero
d8: 3c010000 lui at,0x0
dc: 8c240000 lw a0,0\(at\)
e0: 8c250004 lw a1,4\(at\)
@@ -71,7 +71,7 @@ Disassembly of section .text:
f0: 2c840001 sltiu a0,a0,1
f4: 24a40064 addiu a0,a1,100
f8: 0004202b sltu a0,zero,a0
- fc: 00a02021 move a0,a1
+ fc: 00a02025 move a0,a1
100: 46231040 add.d \$f1,\$f2,\$f3
0+0104 <[^>]*>:
diff --git a/gas/testsuite/gas/mips/mips-gp64-fp32-pic.d b/gas/testsuite/gas/mips/mips-gp64-fp32-pic.d
index 52fe8af..d83d7f9 100644
--- a/gas/testsuite/gas/mips/mips-gp64-fp32-pic.d
+++ b/gas/testsuite/gas/mips/mips-gp64-fp32-pic.d
@@ -93,7 +93,7 @@ Disassembly of section .text:
148: 2c840001 sltiu a0,a0,1
14c: 64a40064 daddiu a0,a1,100
150: 0004202b sltu a0,zero,a0
- 154: 00a0202d move a0,a1
+ 154: 00a02025 move a0,a1
158: 8f840000 lw a0,0\(gp\)
15c: 24840000 addiu a0,a0,0
160: 8f840000 lw a0,0\(gp\)
diff --git a/gas/testsuite/gas/mips/mips-gp64-fp32.d b/gas/testsuite/gas/mips/mips-gp64-fp32.d
index 9f7540b..035cfd6 100644
--- a/gas/testsuite/gas/mips/mips-gp64-fp32.d
+++ b/gas/testsuite/gas/mips/mips-gp64-fp32.d
@@ -67,7 +67,7 @@ Disassembly of section .text:
e0: 2c840001 sltiu a0,a0,1
e4: 64a40064 daddiu a0,a1,100
e8: 0004202b sltu a0,zero,a0
- ec: 00a0202d move a0,a1
+ ec: 00a02025 move a0,a1
f0: 27840000 addiu a0,gp,0
f4: 3c040000 lui a0,0x0
f8: 24840000 addiu a0,a0,0
diff --git a/gas/testsuite/gas/mips/mips-gp64-fp64-pic.d b/gas/testsuite/gas/mips/mips-gp64-fp64-pic.d
index 2e37f68..b66f983 100644
--- a/gas/testsuite/gas/mips/mips-gp64-fp64-pic.d
+++ b/gas/testsuite/gas/mips/mips-gp64-fp64-pic.d
@@ -92,7 +92,7 @@ Disassembly of section .text:
148: 2c840001 sltiu a0,a0,1
14c: 64a40064 daddiu a0,a1,100
150: 0004202b sltu a0,zero,a0
- 154: 00a0202d move a0,a1
+ 154: 00a02025 move a0,a1
158: 8f840000 lw a0,0\(gp\)
15c: 24840000 addiu a0,a0,0
160: 8f840000 lw a0,0\(gp\)
diff --git a/gas/testsuite/gas/mips/mips-gp64-fp64.d b/gas/testsuite/gas/mips/mips-gp64-fp64.d
index 5cd5028..f5fe15f 100644
--- a/gas/testsuite/gas/mips/mips-gp64-fp64.d
+++ b/gas/testsuite/gas/mips/mips-gp64-fp64.d
@@ -67,7 +67,7 @@ Disassembly of section .text:
e0: 2c840001 sltiu a0,a0,1
e4: 64a40064 daddiu a0,a1,100
e8: 0004202b sltu a0,zero,a0
- ec: 00a0202d move a0,a1
+ ec: 00a02025 move a0,a1
f0: 27840000 addiu a0,gp,0
f4: 3c040000 lui a0,0x0
f8: 24840000 addiu a0,a0,0
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index 4568f24..74e0a79 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -1022,6 +1022,10 @@ if { [istarget mips*-*-vxworks*] } {
run_dump_test "n32-consec"
}
+ # tests of objdump's ability to disassemble the move mnemonic
+ run_dump_test_arches "move" [mips_arch_list_matching mips64 !micromips]
+ run_dump_test_arches "micromips32-move" [mips_arch_list_matching micromips]
+
# tests of objdump's ability to disassemble using different
# register names.
run_dump_test "gpr-names-numeric"
diff --git a/gas/testsuite/gas/mips/mipsr6@loc-swap-dis.d b/gas/testsuite/gas/mips/mipsr6@loc-swap-dis.d
index d377f6a..caee888 100644
--- a/gas/testsuite/gas/mips/mipsr6@loc-swap-dis.d
+++ b/gas/testsuite/gas/mips/mipsr6@loc-swap-dis.d
@@ -8,26 +8,26 @@
.*: +file format .*mips.*
Disassembly of section \.text:
-[0-9a-f]+ <[^>]*> 02002021 move a0,s0
+[0-9a-f]+ <[^>]*> 02002025 move a0,s0
[0-9a-f]+ <[^>]*> 00800009 jr a0
[0-9a-f]+ <[^>]*> 00000000 nop
[0-9a-f]+ <[^>]*> 00800009 jr a0
-[0-9a-f]+ <[^>]*> 0200f821 move ra,s0
+[0-9a-f]+ <[^>]*> 0200f825 move ra,s0
[0-9a-f]+ <[^>]*> 03e00009 jr ra
-[0-9a-f]+ <[^>]*> 02002021 move a0,s0
-[0-9a-f]+ <[^>]*> 0200f821 move ra,s0
+[0-9a-f]+ <[^>]*> 02002025 move a0,s0
+[0-9a-f]+ <[^>]*> 0200f825 move ra,s0
[0-9a-f]+ <[^>]*> 03e00009 jr ra
[0-9a-f]+ <[^>]*> 00000000 nop
-[0-9a-f]+ <[^>]*> 02002021 move a0,s0
+[0-9a-f]+ <[^>]*> 02002025 move a0,s0
[0-9a-f]+ <[^>]*> 0080f809 jalr a0
[0-9a-f]+ <[^>]*> 00000000 nop
-[0-9a-f]+ <[^>]*> 0200f821 move ra,s0
+[0-9a-f]+ <[^>]*> 0200f825 move ra,s0
[0-9a-f]+ <[^>]*> 0080f809 jalr a0
[0-9a-f]+ <[^>]*> 00000000 nop
[0-9a-f]+ <[^>]*> 0c000000 jal 0+0000 <foo>
[ ]*[0-9a-f]+: R_MIPS_26 bar
-[0-9a-f]+ <[^>]*> 02002021 move a0,s0
-[0-9a-f]+ <[^>]*> 0200f821 move ra,s0
+[0-9a-f]+ <[^>]*> 02002025 move a0,s0
+[0-9a-f]+ <[^>]*> 0200f825 move ra,s0
[0-9a-f]+ <[^>]*> 0c000000 jal 0+0000 <foo>
[ ]*[0-9a-f]+: R_MIPS_26 bar
[0-9a-f]+ <[^>]*> 00000000 nop
diff --git a/gas/testsuite/gas/mips/move.d b/gas/testsuite/gas/mips/move.d
new file mode 100644
index 0000000..aa978ea
--- /dev/null
+++ b/gas/testsuite/gas/mips/move.d
@@ -0,0 +1,14 @@
+#objdump: -dr
+#name: MIPS move disassembly test
+#source: move.s
+
+# Check objdump's disassembly of the move menomic for addu, daddu and or.
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+0+ <.*>:
+ 0: 03e06825 move t5,ra
+ 4: 03e06821 move t5,ra
+ 8: 03e0682d move t5,ra
+ c: 03e06825 move t5,ra
diff --git a/gas/testsuite/gas/mips/move.s b/gas/testsuite/gas/mips/move.s
new file mode 100644
index 0000000..912577b
--- /dev/null
+++ b/gas/testsuite/gas/mips/move.s
@@ -0,0 +1,4 @@
+ move $13, $31
+ addu $13, $31, $0
+ daddu $13, $31, $0
+ or $13, $31, $0
diff --git a/gas/testsuite/gas/mips/tls-o32.d b/gas/testsuite/gas/mips/tls-o32.d
index d81ba4e..32f27af 100644
--- a/gas/testsuite/gas/mips/tls-o32.d
+++ b/gas/testsuite/gas/mips/tls-o32.d
@@ -14,7 +14,7 @@ Disassembly of section .text:
8: 0399e021 addu gp,gp,t9
c: 27bdfff0 addiu sp,sp,-16
10: afbe0008 sw s8,8\(sp\)
- 14: 03a0f021 move s8,sp
+ 14: 03a0f025 move s8,sp
18: afbc0000 sw gp,0\(sp\)
1c: 8f990000 lw t9,0\(gp\)
1c: R_MIPS_CALL16 __tls_get_addr
@@ -31,7 +31,7 @@ Disassembly of section .text:
3c: 0320f809 jalr t9
40: 00000000 nop
44: 8fdc0000 lw gp,0\(s8\)
- 48: 00401021 move v0,v0
+ 48: 00401025 move v0,v0
4c: 3c030000 lui v1,0x0
4c: R_MIPS_TLS_DTPREL_HI16 tlsvar_ld
50: 24630000 addiu v1,v1,0
@@ -48,7 +48,7 @@ Disassembly of section .text:
70: 34630000 ori v1,v1,0x0
70: R_MIPS_TLS_TPREL_LO16 tlsvar_le
74: 00621821 addu v1,v1,v0
- 78: 03c0e821 move sp,s8
+ 78: 03c0e825 move sp,s8
7c: 8fbe0008 lw s8,8\(sp\)
80: 03e00008 jr ra
84: 27bd0010 addiu sp,sp,16
diff --git a/gas/testsuite/gas/mips/uld2-eb.d b/gas/testsuite/gas/mips/uld2-eb.d
index 8a4d37c..da72fca 100644
--- a/gas/testsuite/gas/mips/uld2-eb.d
+++ b/gas/testsuite/gas/mips/uld2-eb.d
@@ -4,10 +4,6 @@
#source: uld2.s
# Further checks of uld macro.
-# XXX: note: when 'move' is changed to use 'or' rather than daddu, the
-# XXX: 'move' opcodes shown here (whose raw instruction fields are daddu)
-# XXX: should be changed to be 'or' instructions and this comment should be
-# XXX: removed.
.*: +file format .*mips.*
@@ -18,8 +14,8 @@ Disassembly of section .text:
0+000c <[^>]*> 6ca40008 ldr \$4,8\(\$5\)
0+0010 <[^>]*> 68a10000 ldl \$1,0\(\$5\)
0+0014 <[^>]*> 6ca10007 ldr \$1,7\(\$5\)
-0+0018 <[^>]*> 0020282[1d] move \$5,\$1
+0+0018 <[^>]*> 00202825 move \$5,\$1
0+001c <[^>]*> 68a10001 ldl \$1,1\(\$5\)
0+0020 <[^>]*> 6ca10008 ldr \$1,8\(\$5\)
-0+0024 <[^>]*> 0020282[1d] move \$5,\$1
+0+0024 <[^>]*> 00202825 move \$5,\$1
\.\.\.
diff --git a/gas/testsuite/gas/mips/uld2-el.d b/gas/testsuite/gas/mips/uld2-el.d
index e932f35..c77c228 100644
--- a/gas/testsuite/gas/mips/uld2-el.d
+++ b/gas/testsuite/gas/mips/uld2-el.d
@@ -4,10 +4,6 @@
#source: uld2.s
# Further checks of uld macro.
-# XXX: note: when 'move' is changed to use 'or' rather than daddu, the
-# XXX: 'move' opcodes shown here (whose raw instruction fields are daddu)
-# XXX: should be changed to be 'or' instructions and this comment should be
-# XXX: removed.
.*: +file format .*mips.*
@@ -18,8 +14,8 @@ Disassembly of section .text:
0+000c <[^>]*> 6ca40001 ldr \$4,1\(\$5\)
0+0010 <[^>]*> 68a10007 ldl \$1,7\(\$5\)
0+0014 <[^>]*> 6ca10000 ldr \$1,0\(\$5\)
-0+0018 <[^>]*> 0020282[1d] move \$5,\$1
+0+0018 <[^>]*> 00202825 move \$5,\$1
0+001c <[^>]*> 68a10008 ldl \$1,8\(\$5\)
0+0020 <[^>]*> 6ca10001 ldr \$1,1\(\$5\)
-0+0024 <[^>]*> 0020282[1d] move \$5,\$1
+0+0024 <[^>]*> 00202825 move \$5,\$1
\.\.\.
diff --git a/gas/testsuite/gas/mips/ulw2-eb-ilocks.d b/gas/testsuite/gas/mips/ulw2-eb-ilocks.d
index f967aa2..a1a71ab 100644
--- a/gas/testsuite/gas/mips/ulw2-eb-ilocks.d
+++ b/gas/testsuite/gas/mips/ulw2-eb-ilocks.d
@@ -4,10 +4,6 @@
#source: ulw2.s
# Further checks of ulw macro.
-# XXX: note: when 'move' is changed to use 'or' rather than addu/daddu, the
-# XXX: 'move' opcodes shown here (whose raw instruction fields are addu/daddu)
-# XXX: should be changed to be 'or' instructions and this comment should be
-# XXX: removed.
.*: +file format .*mips.*
@@ -18,8 +14,8 @@ Disassembly of section .text:
0+000c <[^>]*> 98a40004 lwr \$4,4\(\$5\)
0+0010 <[^>]*> 88a10000 lwl \$1,0\(\$5\)
0+0014 <[^>]*> 98a10003 lwr \$1,3\(\$5\)
-0+0018 <[^>]*> 0020282[1d] move \$5,\$1
+0+0018 <[^>]*> 00202825 move \$5,\$1
0+001c <[^>]*> 88a10001 lwl \$1,1\(\$5\)
0+0020 <[^>]*> 98a10004 lwr \$1,4\(\$5\)
-0+0024 <[^>]*> 0020282[1d] move \$5,\$1
+0+0024 <[^>]*> 00202825 move \$5,\$1
\.\.\.
diff --git a/gas/testsuite/gas/mips/ulw2-eb.d b/gas/testsuite/gas/mips/ulw2-eb.d
index 9341369..e261250 100644
--- a/gas/testsuite/gas/mips/ulw2-eb.d
+++ b/gas/testsuite/gas/mips/ulw2-eb.d
@@ -4,10 +4,6 @@
#source: ulw2.s
# Further checks of ulw macro.
-# XXX: note: when 'move' is changed to use 'or' rather than addu/daddu, the
-# XXX: 'move' opcodes shown here (whose raw instruction fields are addu/daddu)
-# XXX: should be changed to be 'or' instructions and this comment should be
-# XXX: removed.
.*: +file format .*mips.*
@@ -19,9 +15,9 @@ Disassembly of section .text:
0+0010 <[^>]*> 88a10000 lwl \$1,0\(\$5\)
0+0014 <[^>]*> 98a10003 lwr \$1,3\(\$5\)
0+0018 <[^>]*> 00000000 nop
-0+001c <[^>]*> 0020282[1d] move \$5,\$1
+0+001c <[^>]*> 00202825 move \$5,\$1
0+0020 <[^>]*> 88a10001 lwl \$1,1\(\$5\)
0+0024 <[^>]*> 98a10004 lwr \$1,4\(\$5\)
0+0028 <[^>]*> 00000000 nop
-0+002c <[^>]*> 0020282[1d] move \$5,\$1
+0+002c <[^>]*> 00202825 move \$5,\$1
\.\.\.
diff --git a/gas/testsuite/gas/mips/ulw2-el-ilocks.d b/gas/testsuite/gas/mips/ulw2-el-ilocks.d
index 5e08cef..c21cfcb 100644
--- a/gas/testsuite/gas/mips/ulw2-el-ilocks.d
+++ b/gas/testsuite/gas/mips/ulw2-el-ilocks.d
@@ -4,10 +4,6 @@
#source: ulw2.s
# Further checks of ulw macro.
-# XXX: note: when 'move' is changed to use 'or' rather than addu/daddu, the
-# XXX: 'move' opcodes shown here (whose raw instruction fields are addu/daddu)
-# XXX: should be changed to be 'or' instructions and this comment should be
-# XXX: removed.
.*: +file format .*mips.*
@@ -18,8 +14,8 @@ Disassembly of section .text:
0+000c <[^>]*> 98a40001 lwr \$4,1\(\$5\)
0+0010 <[^>]*> 88a10003 lwl \$1,3\(\$5\)
0+0014 <[^>]*> 98a10000 lwr \$1,0\(\$5\)
-0+0018 <[^>]*> 0020282[1d] move \$5,\$1
+0+0018 <[^>]*> 00202825 move \$5,\$1
0+001c <[^>]*> 88a10004 lwl \$1,4\(\$5\)
0+0020 <[^>]*> 98a10001 lwr \$1,1\(\$5\)
-0+0024 <[^>]*> 0020282[1d] move \$5,\$1
+0+0024 <[^>]*> 00202825 move \$5,\$1
\.\.\.
diff --git a/gas/testsuite/gas/mips/ulw2-el.d b/gas/testsuite/gas/mips/ulw2-el.d
index 75bf408..5981bc8 100644
--- a/gas/testsuite/gas/mips/ulw2-el.d
+++ b/gas/testsuite/gas/mips/ulw2-el.d
@@ -4,11 +4,6 @@
#source: ulw2.s
# Further checks of ulw macro.
-# XXX: note: when 'move' is changed to use 'or' rather than addu/daddu, the
-# XXX: 'move' opcodes shown here (whose raw instruction fields are addu/daddu)
-# XXX: should be changed to be 'or' instructions and this comment should be
-# XXX: removed.
-
.*: +file format .*mips.*
Disassembly of section .text:
@@ -19,9 +14,9 @@ Disassembly of section .text:
0+0010 <[^>]*> 88a10003 lwl \$1,3\(\$5\)
0+0014 <[^>]*> 98a10000 lwr \$1,0\(\$5\)
0+0018 <[^>]*> 00000000 nop
-0+001c <[^>]*> 0020282[1d] move \$5,\$1
+0+001c <[^>]*> 00202825 move \$5,\$1
0+0020 <[^>]*> 88a10004 lwl \$1,4\(\$5\)
0+0024 <[^>]*> 98a10001 lwr \$1,1\(\$5\)
0+0028 <[^>]*> 00000000 nop
-0+002c <[^>]*> 0020282[1d] move \$5,\$1
+0+002c <[^>]*> 00202825 move \$5,\$1
\.\.\.