diff options
author | Nick Clifton <nickc@redhat.com> | 2013-03-20 16:36:34 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-03-20 16:36:34 +0000 |
commit | 795b8e6bf35ad70e7da086831ad01d4b0660ba2d (patch) | |
tree | 5b813493203eae5edc27c2ce3fa38af106fd2a77 /include/opcode/tic6x.h | |
parent | e3f1ad4fd2e99bd226f19f88c513f13f3434de44 (diff) | |
download | gdb-795b8e6bf35ad70e7da086831ad01d4b0660ba2d.zip gdb-795b8e6bf35ad70e7da086831ad01d4b0660ba2d.tar.gz gdb-795b8e6bf35ad70e7da086831ad01d4b0660ba2d.tar.bz2 |
* 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.
Diffstat (limited to 'include/opcode/tic6x.h')
-rw-r--r-- | include/opcode/tic6x.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/opcode/tic6x.h b/include/opcode/tic6x.h index 2a7a246..168f660 100644 --- a/include/opcode/tic6x.h +++ b/include/opcode/tic6x.h @@ -1,6 +1,5 @@ /* TI C6X opcode information. - Copyright 2010, 2011 - Free Software Foundation, Inc. + Copyright 2010-2013 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -380,6 +379,12 @@ typedef enum the field. When applied to a memory reference, encode the base register. */ tic6x_coding_reg, + /* Encode the register-pair's lsb (even register) for instructions + that use src1 as port for loading lsb of double-precision + operand value (absdp, dpint, dpsp, dptrunc, rcpdp, rsqrdp). */ + tic6x_coding_regpair_lsb, + /* Encode the register-pair's msb (odd register), see above. */ + tic6x_coding_regpair_msb, /* Store 0 for register B14, 1 for register B15. When applied to a memory reference, encode the base register. */ tic6x_coding_areg, |