aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@mips.com>2018-02-20 20:51:36 +0000
committerMaciej W. Rozycki <macro@mips.com>2018-02-20 20:51:36 +0000
commit75f31665204bf965cc5b3dd699636be12fb6bcfa (patch)
treef90a652890e3b796b4b00de3e5927b6c693ef0cd /include
parentgas: xtensa: limit size of auto litpools (diff)
downloadbinutils-gdb-75f31665204bf965cc5b3dd699636be12fb6bcfa.tar.gz
binutils-gdb-75f31665204bf965cc5b3dd699636be12fb6bcfa.tar.bz2
binutils-gdb-75f31665204bf965cc5b3dd699636be12fb6bcfa.zip
MIPS16/opcodes: Free up `M' operand code
The `M' and `m' MIPS16 operand codes are functionally the same, denoting a 7-bit register list that is encoded the same way for both SAVE and RESTORE. Use `m' for both instructions then, making `M' available for a different use. opcodes/ * mips16-opc.c (decode_mips16_operand) <'M'>: Remove case. (mips16_opcodes): Replace `M' with `m' for "restore". include/ * opcode/mips.h: Remove `M' operand code.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/opcode/mips.h5
2 files changed, 6 insertions, 3 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 2563ab58397..e9ac49a2df0 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2018-02-20 Maciej W. Rozycki <macro@mips.com>
+
+ * opcode/mips.h: Remove `M' operand code.
+
2018-02-12 Zebediah Figura <z.figura12@gmail.com>
* coff/msdos.h: New header.
diff --git a/include/opcode/mips.h b/include/opcode/mips.h
index 5eea72f1395..a113893f875 100644
--- a/include/opcode/mips.h
+++ b/include/opcode/mips.h
@@ -1889,13 +1889,12 @@ extern int bfd_mips_num_opcodes;
"A" 8 bit PC relative address * 4 (MIPS16OP_*_IMM8)
"B" 5 bit PC relative address * 8 (MIPS16OP_*_IMM5)
"E" 5 bit PC relative address * 4 (MIPS16OP_*_IMM5)
- "m" 7 bit register list for save instruction (18 bit extended)
- "M" 7 bit register list for restore instruction (18 bit extended)
+ "m" 7 bit register list for SAVE/RESTORE instruction (18 bit extended)
Characters used so far, for quick reference when adding more:
"0123456 89"
".[]<>"
- "ABCDEFGHI KLMNOPQRSTUVWXYZ"
+ "ABCDEFGHI KL NOPQRSTUVWXYZ"
"abcde ijklmnopqrs uvwxyz"
*/