Fix disassembly of RX zero-offset register indirect instructions.
authorNick Clifton <nickc@redhat.com>
Mon, 2 Nov 2015 14:14:22 +0000 (14:14 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 2 Nov 2015 14:14:22 +0000 (14:14 +0000)
commite292aa7a9529771c04e9578a2307b8c95bb5591c
treeab52096b7ce3007ec7b2744e0f90ce6075b9a844
parenta62e59897771e2f04fad908fc891714b9bd75d7b
Fix disassembly of RX zero-offset register indirect instructions.

opcode * rx.h (enum RX_Operand_Type): Add RX_Operand_Zero_Indirect.

opcodes * rx-decode.opc (rx_disp): If the displacement is zero, set the
type to RX_Operand_Zero_Indirect.
* rx-decode.c: Regenerate.
* rx-dis (print_insn): Handle RX_Operand_Zero_Indirect.

gas * config/rx-parse.y: Allow zero value for 5-bit displacements.

tests * gas/rx/mov.sm: Add tests for zero offset indirect moves.
* gas/rx/mov.d: Update expected output.
gas/ChangeLog
gas/config/rx-parse.y
gas/testsuite/ChangeLog
gas/testsuite/gas/rx/mov.d
gas/testsuite/gas/rx/mov.sm
include/opcode/ChangeLog
include/opcode/rx.h
opcodes/ChangeLog
opcodes/rx-decode.c
opcodes/rx-decode.opc
opcodes/rx-dis.c