From: Maciej W. Rozycki Date: Tue, 18 Sep 2012 14:19:04 +0000 (+0000) Subject: opcodes/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83ea18d0a3728a97bd2f68dca0ef48ba52e763cb;p=binutils-gdb.git opcodes/ * micromips-opc.c (micromips_opcodes): Correct the encoding of the "swxc1" instruction. gas/testsuite/ * gas/mips/micromips.d: Correct the disassembly of SWXC1. * gas/mips/micromips-trap.d: Likewise. * gas/mips/micromips@24k-triple-stores-1.d: Likewise. * gas/mips/micromips@mips4-fp.d: Likewise. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index e381c0004d8..c3f40c2b998 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2012-09-18 Chao-ying Fu + + * gas/mips/micromips.d: Correct the disassembly of SWXC1. + * gas/mips/micromips-trap.d: Likewise. + * gas/mips/micromips@24k-triple-stores-1.d: Likewise. + * gas/mips/micromips@mips4-fp.d: Likewise. + 2012-09-17 Yufeng Zhang * gas/aarch64/crypto.d (#as): Update for v8->v8-A change. diff --git a/gas/testsuite/gas/mips/micromips-trap.d b/gas/testsuite/gas/mips/micromips-trap.d index 461f23b282d..b97c29f7f86 100644 --- a/gas/testsuite/gas/mips/micromips-trap.d +++ b/gas/testsuite/gas/mips/micromips-trap.d @@ -6504,14 +6504,14 @@ Disassembly of section \.text: [ 0-9a-f]+: 41a1 1234 lui at,0x1234 [ 0-9a-f]+: 0081 0950 addu at,at,a0 [ 0-9a-f]+: 9861 5678 swc1 \$f3,22136\(at\) -[ 0-9a-f]+: 5400 0048 lwxc1 \$f0,zero\(zero\) -[ 0-9a-f]+: 5402 0048 lwxc1 \$f0,zero\(v0\) -[ 0-9a-f]+: 541f 0048 lwxc1 \$f0,zero\(ra\) -[ 0-9a-f]+: 545f 0048 lwxc1 \$f0,v0\(ra\) -[ 0-9a-f]+: 57ff 0048 lwxc1 \$f0,ra\(ra\) -[ 0-9a-f]+: 57ff 0848 lwxc1 \$f1,ra\(ra\) -[ 0-9a-f]+: 57ff 1048 lwxc1 \$f2,ra\(ra\) -[ 0-9a-f]+: 57ff f848 lwxc1 \$f31,ra\(ra\) +[ 0-9a-f]+: 5400 0088 swxc1 \$f0,zero\(zero\) +[ 0-9a-f]+: 5402 0088 swxc1 \$f0,zero\(v0\) +[ 0-9a-f]+: 541f 0088 swxc1 \$f0,zero\(ra\) +[ 0-9a-f]+: 545f 0088 swxc1 \$f0,v0\(ra\) +[ 0-9a-f]+: 57ff 0088 swxc1 \$f0,ra\(ra\) +[ 0-9a-f]+: 57ff 0888 swxc1 \$f1,ra\(ra\) +[ 0-9a-f]+: 57ff 1088 swxc1 \$f2,ra\(ra\) +[ 0-9a-f]+: 57ff f888 swxc1 \$f31,ra\(ra\) [ 0-9a-f]+: 5401 233b trunc\.l\.s \$f0,\$f1 [ 0-9a-f]+: 57df 233b trunc\.l\.s \$f30,\$f31 [ 0-9a-f]+: 5442 233b trunc\.l\.s \$f2,\$f2 diff --git a/gas/testsuite/gas/mips/micromips.d b/gas/testsuite/gas/mips/micromips.d index 1de9dab2405..af437f5ec27 100644 --- a/gas/testsuite/gas/mips/micromips.d +++ b/gas/testsuite/gas/mips/micromips.d @@ -6576,14 +6576,14 @@ Disassembly of section \.text: [ 0-9a-f]+: 41a1 1234 lui at,0x1234 [ 0-9a-f]+: 0081 0950 addu at,at,a0 [ 0-9a-f]+: 9861 5678 swc1 \$f3,22136\(at\) -[ 0-9a-f]+: 5400 0048 lwxc1 \$f0,zero\(zero\) -[ 0-9a-f]+: 5402 0048 lwxc1 \$f0,zero\(v0\) -[ 0-9a-f]+: 541f 0048 lwxc1 \$f0,zero\(ra\) -[ 0-9a-f]+: 545f 0048 lwxc1 \$f0,v0\(ra\) -[ 0-9a-f]+: 57ff 0048 lwxc1 \$f0,ra\(ra\) -[ 0-9a-f]+: 57ff 0848 lwxc1 \$f1,ra\(ra\) -[ 0-9a-f]+: 57ff 1048 lwxc1 \$f2,ra\(ra\) -[ 0-9a-f]+: 57ff f848 lwxc1 \$f31,ra\(ra\) +[ 0-9a-f]+: 5400 0088 swxc1 \$f0,zero\(zero\) +[ 0-9a-f]+: 5402 0088 swxc1 \$f0,zero\(v0\) +[ 0-9a-f]+: 541f 0088 swxc1 \$f0,zero\(ra\) +[ 0-9a-f]+: 545f 0088 swxc1 \$f0,v0\(ra\) +[ 0-9a-f]+: 57ff 0088 swxc1 \$f0,ra\(ra\) +[ 0-9a-f]+: 57ff 0888 swxc1 \$f1,ra\(ra\) +[ 0-9a-f]+: 57ff 1088 swxc1 \$f2,ra\(ra\) +[ 0-9a-f]+: 57ff f888 swxc1 \$f31,ra\(ra\) [ 0-9a-f]+: 5401 233b trunc\.l\.s \$f0,\$f1 [ 0-9a-f]+: 57df 233b trunc\.l\.s \$f30,\$f31 [ 0-9a-f]+: 5442 233b trunc\.l\.s \$f2,\$f2 diff --git a/gas/testsuite/gas/mips/micromips@24k-triple-stores-1.d b/gas/testsuite/gas/mips/micromips@24k-triple-stores-1.d index 15f38953b72..99757b9b623 100644 --- a/gas/testsuite/gas/mips/micromips@24k-triple-stores-1.d +++ b/gas/testsuite/gas/mips/micromips@24k-triple-stores-1.d @@ -58,11 +58,11 @@ Disassembly of section \.text: *[0-9a-f]+: 209d a010 sdc2 \$4,16\(sp\) *[0-9a-f]+: 20bd a018 sdc2 \$5,24\(sp\) *[0-9a-f]+: 20dd a020 sdc2 \$6,32\(sp\) - *[0-9a-f]+: 5528 0048 lwxc1 \$f0,t1\(t0\) - *[0-9a-f]+: 5548 0848 lwxc1 \$f1,t2\(t0\) - *[0-9a-f]+: 5568 1048 lwxc1 \$f2,t3\(t0\) - *[0-9a-f]+: 5588 1848 lwxc1 \$f3,t4\(t0\) - *[0-9a-f]+: 55a8 2048 lwxc1 \$f4,t5\(t0\) + *[0-9a-f]+: 5528 0088 swxc1 \$f0,t1\(t0\) + *[0-9a-f]+: 5548 0888 swxc1 \$f1,t2\(t0\) + *[0-9a-f]+: 5568 1088 swxc1 \$f2,t3\(t0\) + *[0-9a-f]+: 5588 1888 swxc1 \$f3,t4\(t0\) + *[0-9a-f]+: 55a8 2088 swxc1 \$f4,t5\(t0\) *[0-9a-f]+: 5528 0108 sdxc1 \$f0,t1\(t0\) *[0-9a-f]+: 5548 1108 sdxc1 \$f2,t2\(t0\) *[0-9a-f]+: 5568 2108 sdxc1 \$f4,t3\(t0\) diff --git a/gas/testsuite/gas/mips/micromips@mips4-fp.d b/gas/testsuite/gas/mips/micromips@mips4-fp.d index 35131b9e93c..73581bed9d1 100644 --- a/gas/testsuite/gas/mips/micromips@mips4-fp.d +++ b/gas/testsuite/gas/mips/micromips@mips4-fp.d @@ -45,6 +45,6 @@ Disassembly of section \.text: [0-9a-f]+ <[^>]*> 5486 423b rsqrt\.d \$f4,\$f6 [0-9a-f]+ <[^>]*> 5486 023b rsqrt\.s \$f4,\$f6 [0-9a-f]+ <[^>]*> 5485 2108 sdxc1 \$f4,a0\(a1\) -[0-9a-f]+ <[^>]*> 5485 2048 lwxc1 \$f4,a0\(a1\) +[0-9a-f]+ <[^>]*> 5485 2088 swxc1 \$f4,a0\(a1\) [0-9a-f]+ <[^>]*> 0c00 nop \.\.\. diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index ab543ca441b..ca493db357b 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2012-09-18 Chao-ying Fu + + * micromips-opc.c (micromips_opcodes): Correct the encoding of + the "swxc1" instruction. + 2012-09-17 Yufeng Zhang * aarch64-asm.c (aarch64_ins_imm_half): Remove ATTRIBUTE_UNUSED from diff --git a/opcodes/micromips-opc.c b/opcodes/micromips-opc.c index b4982cc5e0d..5e71dfb5f91 100644 --- a/opcodes/micromips-opc.c +++ b/opcodes/micromips-opc.c @@ -911,7 +911,7 @@ const struct mips_opcode micromips_opcodes[] = {"invalidate", "t,~(b)",0x60009000, 0xfc00f000, SM|RD_b|RD_t, 0, I1 }, /* same */ {"invalidate", "t,o(b)",0, (int) M_SWR_OB, INSN_MACRO, 0, I1 }, {"invalidate", "t,A(b)",0, (int) M_SWR_AB, INSN_MACRO, 0, I1 }, -{"swxc1", "D,t(b)", 0x54000048, 0xfc0007ff, SM|RD_t|RD_b|FP_S, RD_D, I1 }, +{"swxc1", "D,t(b)", 0x54000088, 0xfc0007ff, SM|RD_t|RD_b|FP_S, RD_D, I1 }, {"sync_acquire", "", 0x00116b7c, 0xffffffff, NODS, 0, I1 }, {"sync_mb", "", 0x00106b7c, 0xffffffff, NODS, 0, I1 }, {"sync_release", "", 0x00126b7c, 0xffffffff, NODS, 0, I1 },