aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog10
-rw-r--r--gas/testsuite/gas/mips/micromips-compact.d128
-rw-r--r--gas/testsuite/gas/mips/micromips-insn32.d128
-rw-r--r--gas/testsuite/gas/mips/micromips-noinsn32.d128
-rw-r--r--gas/testsuite/gas/mips/micromips-trap.d128
-rw-r--r--gas/testsuite/gas/mips/micromips.d128
-rw-r--r--gas/testsuite/gas/mips/micromips@isa-override-1.d2
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/micromips-opc.c2
9 files changed, 337 insertions, 322 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 1eb7b39..3b94c5d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,15 @@
2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
+ * testsuite/gas/mips/micromips.d: Update disassembly according
+ to "dmtc1" entry fix with opcodes.
+ * testsuite/gas/mips/micromips-compact.d: Likewise.
+ * testsuite/gas/mips/micromips-insn32.d: Likewise.
+ * testsuite/gas/mips/micromips-noinsn32.d: Likewise.
+ * testsuite/gas/mips/micromips-trap.d: Likewise.
+ * testsuite/gas/mips/micromips@isa-override-1.d: Likewise.
+
+2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
+
* config/tc-mips.c (FCSR): New macro.
(macro) <M_TRUNCWS, M_TRUNCWD>: Use it in place of RA.
diff --git a/gas/testsuite/gas/mips/micromips-compact.d b/gas/testsuite/gas/mips/micromips-compact.d
index c0fc89c..34f6186 100644
--- a/gas/testsuite/gas/mips/micromips-compact.d
+++ b/gas/testsuite/gas/mips/micromips-compact.d
@@ -6765,70 +6765,70 @@ Disassembly of section \.text:
[ 0-9a-f]+: 54bd 243b dmfc1 a1,\$f29
[ 0-9a-f]+: 54be 243b dmfc1 a1,\$f30
[ 0-9a-f]+: 54bf 243b dmfc1 a1,\$f31
-[ 0-9a-f]+: 54a0 2c3b dmtc1 a1,c1_fir
-[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tc1 a1,\$f19
+[ 0-9a-f]+: 54b4 2c3b dmtc1 a1,\$f20
+[ 0-9a-f]+: 54b5 2c3b dmtc1 a1,\$f21
+[ 0-9a-f]+: 54b6 2c3b dmtc1 a1,\$f22
+[ 0-9a-f]+: 54b7 2c3b dmtc1 a1,\$f23
+[ 0-9a-f]+: 54b8 2c3b dmtc1 a1,\$f24
+[ 0-9a-f]+: 54b9 2c3b dmtc1 a1,\$f25
+[ 0-9a-f]+: 54ba 2c3b dmtc1 a1,\$f26
+[ 0-9a-f]+: 54bb 2c3b dmtc1 a1,\$f27
+[ 0-9a-f]+: 54bc 2c3b dmtc1 a1,\$f28
+[ 0-9a-f]+: 54bd 2c3b dmtc1 a1,\$f29
+[ 0-9a-f]+: 54be 2c3b dmtc1 a1,\$f30
+[ 0-9a-f]+: 54bf 2c3b dmtc1 a1,\$f31
[ 0-9a-f]+: 0040 6d3c dmfc2 v0,\$0
[ 0-9a-f]+: 0041 6d3c dmfc2 v0,\$1
[ 0-9a-f]+: 0042 6d3c dmfc2 v0,\$2
diff --git a/gas/testsuite/gas/mips/micromips-insn32.d b/gas/testsuite/gas/mips/micromips-insn32.d
index c8998c6..f4282ff 100644
--- a/gas/testsuite/gas/mips/micromips-insn32.d
+++ b/gas/testsuite/gas/mips/micromips-insn32.d
@@ -6789,70 +6789,70 @@ Disassembly of section \.text:
[ 0-9a-f]+: 54bd 243b dmfc1 a1,\$f29
[ 0-9a-f]+: 54be 243b dmfc1 a1,\$f30
[ 0-9a-f]+: 54bf 243b dmfc1 a1,\$f31
-[ 0-9a-f]+: 54a0 2c3b dmtc1 a1,c1_fir
-[ 0-9a-f]+: 54a1 2c3b dmtc1 a1,c1_ufr
-[ 0-9a-f]+: 54a2 2c3b dmtc1 a1,\$2
-[ 0-9a-f]+: 54a3 2c3b dmtc1 a1,\$3
-[ 0-9a-f]+: 54a4 2c3b dmtc1 a1,c1_unfr
-[ 0-9a-f]+: 54a5 2c3b dmtc1 a1,\$5
-[ 0-9a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\$f24
+[ 0-9a-f]+: 54b9 2c3b dmtc1 a1,\$f25
+[ 0-9a-f]+: 54ba 2c3b dmtc1 a1,\$f26
+[ 0-9a-f]+: 54bb 2c3b dmtc1 a1,\$f27
+[ 0-9a-f]+: 54bc 2c3b dmtc1 a1,\$f28
+[ 0-9a-f]+: 54bd 2c3b dmtc1 a1,\$f29
+[ 0-9a-f]+: 54be 2c3b dmtc1 a1,\$f30
+[ 0-9a-f]+: 54bf 2c3b dmtc1 a1,\$f31
[ 0-9a-f]+: 0040 6d3c dmfc2 v0,\$0
[ 0-9a-f]+: 0041 6d3c dmfc2 v0,\$1
[ 0-9a-f]+: 0042 6d3c dmfc2 v0,\$2
diff --git a/gas/testsuite/gas/mips/micromips-noinsn32.d b/gas/testsuite/gas/mips/micromips-noinsn32.d
index 2258cb9..75bfaf7 100644
--- a/gas/testsuite/gas/mips/micromips-noinsn32.d
+++ b/gas/testsuite/gas/mips/micromips-noinsn32.d
@@ -6766,70 +6766,70 @@ Disassembly of section \.text:
[ 0-9a-f]+: 54bd 243b dmfc1 a1,\$f29
[ 0-9a-f]+: 54be 243b dmfc1 a1,\$f30
[ 0-9a-f]+: 54bf 243b dmfc1 a1,\$f31
-[ 0-9a-f]+: 54a0 2c3b dmtc1 a1,c1_fir
-[ 0-9a-f]+: 54a1 2c3b dmtc1 a1,c1_ufr
-[ 0-9a-f]+: 54a2 2c3b dmtc1 a1,\$2
-[ 0-9a-f]+: 54a3 2c3b dmtc1 a1,\$3
-[ 0-9a-f]+: 54a4 2c3b dmtc1 a1,c1_unfr
-[ 0-9a-f]+: 54a5 2c3b dmtc1 a1,\$5
-[ 0-9a-f]+: 54a6 2c3b dmtc1 a1,\$6
-[ 0-9a-f]+: 54a7 2c3b dmtc1 a1,\$7
-[ 0-9a-f]+: 54a8 2c3b dmtc1 a1,\$8
-[ 0-9a-f]+: 54a9 2c3b dmtc1 a1,\$9
-[ 0-9a-f]+: 54aa 2c3b dmtc1 a1,\$10
-[ 0-9a-f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a1,\$f29
+[ 0-9a-f]+: 54be 2c3b dmtc1 a1,\$f30
+[ 0-9a-f]+: 54bf 2c3b dmtc1 a1,\$f31
[ 0-9a-f]+: 0040 6d3c dmfc2 v0,\$0
[ 0-9a-f]+: 0041 6d3c dmfc2 v0,\$1
[ 0-9a-f]+: 0042 6d3c dmfc2 v0,\$2
diff --git a/gas/testsuite/gas/mips/micromips-trap.d b/gas/testsuite/gas/mips/micromips-trap.d
index e96c449..68f5a02 100644
--- a/gas/testsuite/gas/mips/micromips-trap.d
+++ b/gas/testsuite/gas/mips/micromips-trap.d
@@ -6757,70 +6757,70 @@ Disassembly of section \.text:
[ 0-9a-f]+: 54bd 243b dmfc1 a1,\$f29
[ 0-9a-f]+: 54be 243b dmfc1 a1,\$f30
[ 0-9a-f]+: 54bf 243b dmfc1 a1,\$f31
-[ 0-9a-f]+: 54a0 2c3b dmtc1 a1,c1_fir
-[ 0-9a-f]+: 54a1 2c3b dmtc1 a1,c1_ufr
-[ 0-9a-f]+: 54a2 2c3b dmtc1 a1,\$2
-[ 0-9a-f]+: 54a3 2c3b dmtc1 a1,\$3
-[ 0-9a-f]+: 54a4 2c3b dmtc1 a1,c1_unfr
-[ 0-9a-f]+: 54a5 2c3b dmtc1 a1,\$5
-[ 0-9a-f]+: 54a6 2c3b dmtc1 a1,\$6
-[ 0-9a-f]+: 54a7 2c3b dmtc1 a1,\$7
-[ 0-9a-f]+: 54a8 2c3b dmtc1 a1,\$8
-[ 0-9a-f]+: 54a9 2c3b dmtc1 a1,\$9
-[ 0-9a-f]+: 54aa 2c3b dmtc1 a1,\$10
-[ 0-9a-f]+: 54ab 2c3b dmtc1 a1,\$11
-[ 0-9a-f]+: 54ac 2c3b dmtc1 a1,\$12
-[ 0-9a-f]+: 54ad 2c3b dmtc1 a1,\$13
-[ 0-9a-f]+: 54ae 2c3b dmtc1 a1,\$14
-[ 0-9a-f]+: 54af 2c3b dmtc1 a1,\$15
-[ 0-9a-f]+: 54b0 2c3b dmtc1 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gas/mips/micromips.d b/gas/testsuite/gas/mips/micromips.d
index 7c24c35..86511b9 100644
--- a/gas/testsuite/gas/mips/micromips.d
+++ b/gas/testsuite/gas/mips/micromips.d
@@ -6844,70 +6844,70 @@ Disassembly of section \.text:
[ 0-9a-f]+: 54bd 243b dmfc1 a1,\$f29
[ 0-9a-f]+: 54be 243b dmfc1 a1,\$f30
[ 0-9a-f]+: 54bf 243b dmfc1 a1,\$f31
-[ 0-9a-f]+: 54a0 2c3b dmtc1 a1,c1_fir
-[ 0-9a-f]+: 54a1 2c3b dmtc1 a1,c1_ufr
-[ 0-9a-f]+: 54a2 2c3b dmtc1 a1,\$2
-[ 0-9a-f]+: 54a3 2c3b dmtc1 a1,\$3
-[ 0-9a-f]+: 54a4 2c3b dmtc1 a1,c1_unfr
-[ 0-9a-f]+: 54a5 2c3b dmtc1 a1,\$5
-[ 0-9a-f]+: 54a6 2c3b dmtc1 a1,\$6
-[ 0-9a-f]+: 54a7 2c3b dmtc1 a1,\$7
-[ 0-9a-f]+: 54a8 2c3b dmtc1 a1,\$8
-[ 0-9a-f]+: 54a9 2c3b dmtc1 a1,\$9
-[ 0-9a-f]+: 54aa 2c3b dmtc1 a1,\$10
-[ 0-9a-f]+: 54ab 2c3b dmtc1 a1,\$11
-[ 0-9a-f]+: 54ac 2c3b dmtc1 a1,\$12
-[ 0-9a-f]+: 54ad 2c3b dmtc1 a1,\$13
-[ 0-9a-f]+: 54ae 2c3b dmtc1 a1,\$14
-[ 0-9a-f]+: 54af 2c3b dmtc1 a1,\$15
-[ 0-9a-f]+: 54b0 2c3b dmtc1 a1,\$16
-[ 0-9a-f]+: 54b1 2c3b dmtc1 a1,\$17
-[ 0-9a-f]+: 54b2 2c3b dmtc1 a1,\$18
-[ 0-9a-f]+: 54b3 2c3b dmtc1 a1,\$19
-[ 0-9a-f]+: 54b4 2c3b dmtc1 a1,\$20
-[ 0-9a-f]+: 54b5 2c3b dmtc1 a1,\$21
-[ 0-9a-f]+: 54b6 2c3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]+: 54ac 2c3b dmtc1 a1,\$f12
+[ 0-9a-f]+: 54ad 2c3b dmtc1 a1,\$f13
+[ 0-9a-f]+: 54ae 2c3b dmtc1 a1,\$f14
+[ 0-9a-f]+: 54af 2c3b dmtc1 a1,\$f15
+[ 0-9a-f]+: 54b0 2c3b dmtc1 a1,\$f16
+[ 0-9a-f]+: 54b1 2c3b dmtc1 a1,\$f17
+[ 0-9a-f]+: 54b2 2c3b dmtc1 a1,\$f18
+[ 0-9a-f]+: 54b3 2c3b dmtc1 a1,\$f19
+[ 0-9a-f]+: 54b4 2c3b dmtc1 a1,\$f20
+[ 0-9a-f]+: 54b5 2c3b dmtc1 a1,\$f21
+[ 0-9a-f]+: 54b6 2c3b dmtc1 a1,\$f22
+[ 0-9a-f]+: 54b7 2c3b dmtc1 a1,\$f23
+[ 0-9a-f]+: 54b8 2c3b dmtc1 a1,\$f24
+[ 0-9a-f]+: 54b9 2c3b dmtc1 a1,\$f25
+[ 0-9a-f]+: 54ba 2c3b dmtc1 a1,\$f26
+[ 0-9a-f]+: 54bb 2c3b dmtc1 a1,\$f27
+[ 0-9a-f]+: 54bc 2c3b dmtc1 a1,\$f28
+[ 0-9a-f]+: 54bd 2c3b dmtc1 a1,\$f29
+[ 0-9a-f]+: 54be 2c3b dmtc1 a1,\$f30
+[ 0-9a-f]+: 54bf 2c3b dmtc1 a1,\$f31
[ 0-9a-f]+: 0040 6d3c dmfc2 v0,\$0
[ 0-9a-f]+: 0041 6d3c dmfc2 v0,\$1
[ 0-9a-f]+: 0042 6d3c dmfc2 v0,\$2
diff --git a/gas/testsuite/gas/mips/micromips@isa-override-1.d b/gas/testsuite/gas/mips/micromips@isa-override-1.d
index 3403696..9218ca5 100644
--- a/gas/testsuite/gas/mips/micromips@isa-override-1.d
+++ b/gas/testsuite/gas/mips/micromips@isa-override-1.d
@@ -28,7 +28,7 @@ Disassembly of section \.text:
[0-9a-f]+ <[^>]*> 5821 8000 dsll at,at,0x10
[0-9a-f]+ <[^>]*> 5021 89ab ori at,at,0x89ab
[0-9a-f]+ <[^>]*> 5821 8000 dsll at,at,0x10
-[0-9a-f]+ <[^>]*> 5422 2c3b dmtc1 at,\$2
+[0-9a-f]+ <[^>]*> 5422 2c3b dmtc1 at,\$f2
[0-9a-f]+ <[^>]*> fc44 0000 lw v0,0\(a0\)
[0-9a-f]+ <[^>]*> fc64 0004 lw v1,4\(a0\)
[0-9a-f]+ <[^>]*> 41a1 89ab lui at,0x89ab
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 7ba0c02..48c62e8 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
+
+ * micromips-opc.c (micromips_opcodes): Swap the two "dmtc1"
+ entries with each other.
+
2021-05-27 Peter Bergner <bergner@linux.ibm.com>
* ppc-opc.c (powerpc_opcodes) <xxmr, xxlnot>: New extended mnemonics.
diff --git a/opcodes/micromips-opc.c b/opcodes/micromips-opc.c
index 6553c29..fca0b83 100644
--- a/opcodes/micromips-opc.c
+++ b/opcodes/micromips-opc.c
@@ -633,8 +633,8 @@ const struct mips_opcode micromips_opcodes[] =
{"dmtgc0", "t,G,H", 0x580006fc, 0xfc00c7ff, RD_1|WR_C0|WR_CC, 0, 0, IVIRT64, 0 },
{"dmfc1", "t,S", 0x5400243b, 0xfc00ffff, WR_1|RD_2|FP_S|LC, 0, I3, 0, 0 },
{"dmfc1", "t,G", 0x5400243b, 0xfc00ffff, WR_1|RD_2|FP_S|LC, 0, I3, 0, 0 },
-{"dmtc1", "t,G", 0x54002c3b, 0xfc00ffff, RD_1|WR_2|FP_S|CM, 0, I3, 0, 0 },
{"dmtc1", "t,S", 0x54002c3b, 0xfc00ffff, RD_1|WR_2|FP_S|CM, 0, I3, 0, 0 },
+{"dmtc1", "t,G", 0x54002c3b, 0xfc00ffff, RD_1|WR_2|FP_S|CM, 0, I3, 0, 0 },
{"dmfc2", "t,G", 0x00006d3c, 0xfc00ffff, WR_1|RD_C2, 0, I3, 0, 0 },
/*{"dmfc2", "t,G,H", 0x58000283, 0xfc001fff, WR_1|RD_C2, 0, I3, 0, 0 },*/
{"dmtc2", "t,G", 0x00007d3c, 0xfc00ffff, RD_1|WR_C2|WR_CC, 0, I3, 0, 0 },