diff options
author | Maciej W. Rozycki <macro@imgtec.com> | 2016-12-09 22:50:07 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@imgtec.com> | 2016-12-09 23:19:52 +0000 |
commit | f17ecb4baca990b57cc57e8337c4e03ecee02742 (patch) | |
tree | 994ed30c092ff3164f0d1d0157b9d17e0d8cb3c3 /opcodes/mips16-opc.c | |
parent | 55af478400524cba7994e353fd9a98ef1543df2f (diff) | |
download | binutils-gdb-f17ecb4baca990b57cc57e8337c4e03ecee02742.tar.gz |
MIPS16/opcodes: Use hexadecimal interpretation for the `e' operand code
Make the `e' operand code used with raw EXTEND instructions use the
hexadecimal rather than decimal format, for consistency with what is
actually produced by code in `print_insn_mips16' dedicated to EXTEND
disassembly. Due to that special handling the operand code is only
interpreted for assembly however, which accepts either format either
way, so there is no functional change here.
opcodes/
* mips16-opc.c (decode_mips16_operand) <'e'>: Use HINT rather
than UINT.
gas/
* testsuite/gas/mips/mips16-extend.d: New test.
* testsuite/gas/mips/mips16-extend.s: New test source.
* testsuite/gas/mips/mips.exp: Run the new test.
Diffstat (limited to 'opcodes/mips16-opc.c')
-rw-r--r-- | opcodes/mips16-opc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/mips16-opc.c b/opcodes/mips16-opc.c index 9337e5d2e4a..2b0e942887b 100644 --- a/opcodes/mips16-opc.c +++ b/opcodes/mips16-opc.c @@ -61,7 +61,7 @@ decode_mips16_operand (char type, bfd_boolean extended_p) case 'Z': MAPPED_REG (3, 0, GP, reg_m16_map); case 'a': JUMP (26, 0, 2); - case 'e': UINT (11, 0); + case 'e': HINT (11, 0); case 'i': JALX (26, 0, 2); case 'l': SPECIAL (6, 5, ENTRY_EXIT_LIST); case 'm': SPECIAL (7, 0, SAVE_RESTORE_LIST); |