include/opcode/
authorRichard Sandiford <rdsandiford@googlemail.com>
Sat, 3 Aug 2013 10:49:48 +0000 (10:49 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Sat, 3 Aug 2013 10:49:48 +0000 (10:49 +0000)
commit3ccad066ac853353fb20d9bf2993107dda242801
tree50222c01bc5d4e226cc9b32442b1be3215278165
parent0acfaea6cd192fce727369cdcede034410a5a1da
include/opcode/
* mips.h (mips_pcrel_operand): Inherit from mips_int_operand.
(mips_int_operand_min, mips_int_operand_max): New functions.
(mips_decode_pcrel_operand): Use mips_decode_int_operand.

opcodes/
* mips-formats.h (PCREL): Reorder parameters and update the definition
to match new mips_pcrel_operand layout.
(JUMP, JALX, BRANCH): Update accordingly.
* mips16-opc.c (decode_mips16_operand): Likewise.

gas/
* config/tc-mips.c (match_int_operand): Use mips_int_operand_min
and mips_int_operand_max.
(mips16_immed_operand, mips16_immed_operands, MIPS16_NUM_IMMED):
Delete.
(mips16_immed_operand, mips16_immed_in_range_p): New functions.
(mips16_immed, mips16_extended_frag): Use them.  Use mips_int_operand
instead of mips16_immed_operand.
gas/ChangeLog
gas/config/tc-mips.c
include/opcode/ChangeLog
include/opcode/mips.h
opcodes/ChangeLog
opcodes/mips-formats.h
opcodes/mips16-opc.c