* include/opcode/tic6x.h: add tic6x_coding_dreg_(msb|lsb) field coding type in
authorNick Clifton <nickc@redhat.com>
Wed, 20 Mar 2013 16:36:34 +0000 (16:36 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 20 Mar 2013 16:36:34 +0000 (16:36 +0000)
commit795b8e6bf35ad70e7da086831ad01d4b0660ba2d
tree5b813493203eae5edc27c2ce3fa38af106fd2a77
parente3f1ad4fd2e99bd226f19f88c513f13f3434de44
* include/opcode/tic6x.h: add tic6x_coding_dreg_(msb|lsb) field coding type in
order to encode separately the msb and lsb of a register pair ; this will be
needed to encode the opcodes the same
way as Ti assembler does.

* gas/config/tc-tic6x.c: handle tic6x_coding_dreg_(msb|lsb)  field coding types
and use it to encode register pair numbers when required.

* opcodes/tic6x-dis.c: decodes opcodes that have individual msb and lsb halves
in src1 & src2 fields ; discard the src1 (lsb) value and only use src2 (msb),
discarding bit 0, to follow what Ti SDK does in that case as any value in the
src1 field yields the same output with SDK disassembler.

* include/opcode/tic6x-opcode-table.h: modify absdp, dpint, dpsp, dptrunc,
rcpdp and rsqrdp opcodes to use the new field coding types.

* gas/testsuite/gas/tic6x/insns-c674x.d, gas/testsuite/gas/tic6x/insns-c674x.s
: add test case for the newly generated opcode but keep the old ones as they
seem legit as per Ti disassembler output.
gas/ChangeLog
gas/config/tc-tic6x.c
gas/testsuite/ChangeLog
gas/testsuite/gas/tic6x/insns-c674x.d
gas/testsuite/gas/tic6x/insns-c674x.s
include/opcode/ChangeLog
include/opcode/tic6x-opcode-table.h
include/opcode/tic6x.h
opcodes/ChangeLog
opcodes/tic6x-dis.c