aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@redhat.com>2024-07-19 19:01:53 +0100
committerMaciej W. Rozycki <macro@redhat.com>2024-07-19 19:01:53 +0100
commitb39807cc93bb85c9654b39a5c17f9d8de940429e (patch)
tree4fab871b2a3b2b8fb5c53d034a1713dc7909bc6e
parent0ffc7246996b40cd189694fca7b297913a9ea000 (diff)
downloadbinutils-b39807cc93bb85c9654b39a5c17f9d8de940429e.zip
binutils-b39807cc93bb85c9654b39a5c17f9d8de940429e.tar.gz
binutils-b39807cc93bb85c9654b39a5c17f9d8de940429e.tar.bz2
MIPS/opcodes: Replace "y" microMIPS operand code with "x"
Replace the "y" microMIPS operand code, used with ALNV.PS only, with "x" so as to make "y" available for microMIPS MT use.
-rw-r--r--include/opcode/mips.h4
-rw-r--r--opcodes/micromips-opc.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/opcode/mips.h b/include/opcode/mips.h
index 1e4b3e2..67849ff 100644
--- a/include/opcode/mips.h
+++ b/include/opcode/mips.h
@@ -1798,7 +1798,7 @@ extern const int bfd_mips16_num_opcodes;
(MICROMIPSOP_*_RS)
"w" 5-bit same register used as both target and destination
(MICROMIPSOP_*_RT)
- "y" 5-bit source 3 register for ALNV.PS (MICROMIPSOP_*_RS3)
+ "x" 5-bit source 3 register for ALNV.PS (MICROMIPSOP_*_RS3)
"z" must be zero register
"C" 23-bit coprocessor function code (MICROMIPSOP_*_COPZ)
"K" 5-bit Hardware Register (RDHWR instruction) (MICROMIPSOP_*_RS)
@@ -1908,7 +1908,7 @@ extern const int bfd_mips16_num_opcodes;
"12345678 0"
"<>(),+-.@\^|~"
"ABCDEFGHI KLMN RST V "
- "abcd fghijklmnopqrstuvw yz"
+ "abcd fghijklmnopqrstuvwx z"
Extension character sequences used so far ("+" followed by the
following), for quick reference when adding more:
diff --git a/opcodes/micromips-opc.c b/opcodes/micromips-opc.c
index dca40a2..71595bf 100644
--- a/opcodes/micromips-opc.c
+++ b/opcodes/micromips-opc.c
@@ -191,7 +191,7 @@ decode_micromips_operand (const char *p)
case 'u': HINT (16, 0);
case 'v': OPTIONAL_REG (5, 16, GP);
case 'w': OPTIONAL_REG (5, 21, GP);
- case 'y': REG (5, 6, GP);
+ case 'x': REG (5, 6, GP);
case 'z': MAPPED_REG (0, 0, GP, reg_0_map);
}
return 0;
@@ -347,7 +347,7 @@ const struct mips_opcode micromips_opcodes[] =
{"addu", "md,me,ml", 0x0400, 0xfc01, WR_1|RD_2|RD_3, 0, I1, 0, 0 },
{"addu", "d,v,t", 0x00000150, 0xfc0007ff, WR_1|RD_2|RD_3, 0, I1, 0, 0 },
{"addu", "t,r,I", 0, (int) M_ADDU_I, INSN_MACRO, 0, I1, 0, 0 },
-{"alnv.ps", "D,V,T,y", 0x54000019, 0xfc00003f, WR_1|RD_2|RD_3|RD_4|FP_D, 0, I1, 0, 0 },
+{"alnv.ps", "D,V,T,x", 0x54000019, 0xfc00003f, WR_1|RD_2|RD_3|RD_4|FP_D, 0, I1, 0, 0 },
{"and", "mf,mt,mg", 0x4480, 0xffc0, MOD_1|RD_3, 0, I1, 0, 0 },
{"and", "mf,mg,mx", 0x4480, 0xffc0, MOD_1|RD_2, 0, I1, 0, 0 },
{"and", "d,v,t", 0x00000250, 0xfc0007ff, WR_1|RD_2|RD_3, 0, I1, 0, 0 },