diff options
author | H.J. Lu <hjl@lucon.org> | 2005-05-07 13:29:59 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2005-05-07 13:29:59 +0000 |
commit | 50868a2a1a1d9acccde855ee72d6cdb1a64ea2dd (patch) | |
tree | 6e1db4b3586c1f7a8d664f9f4f6119a9ba8c8b02 /opcodes/i386-dis.c | |
parent | dcc02192bb3242e84d94a6f47adf9b64b6180538 (diff) | |
download | gdb-50868a2a1a1d9acccde855ee72d6cdb1a64ea2dd.tar.gz |
gas/testsuite/
2005-05-07 H.J. Lu <hongjiu.lu@intel.com>
PR 843
* gas/i386/i386.exp: Add x86-64-branch.
* gas/i386/x86-64-branch.d: New.
* gas/i386/x86-64-branch.s: New.
opcodes/
2005-05-07 H.J. Lu <hongjiu.lu@intel.com>
PR 843
* i386-dis.c (branch_v_mode): New.
(indirEv): Use branch_v_mode instead of v_mode.
(OP_E): Handle branch_v_mode.
Diffstat (limited to 'opcodes/i386-dis.c')
-rw-r--r-- | opcodes/i386-dis.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 0014a706ad8..15f43c30b25 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -197,7 +197,7 @@ fetch_data (struct disassemble_info *info, bfd_byte *addr) #define Eq OP_E, q_mode #define Edq OP_E, dq_mode #define Edqw OP_E, dqw_mode -#define indirEv OP_indirE, v_mode +#define indirEv OP_indirE, branch_v_mode #define indirEp OP_indirE, f_mode #define Ew OP_E, w_mode #define Ma OP_E, v_mode @@ -323,6 +323,7 @@ fetch_data (struct disassemble_info *info, bfd_byte *addr) #define dqw_mode 12 /* registers like dq_mode, memory like w_mode. */ #define f_mode 13 /* 4- or 6-byte pointer operand */ #define const_1_mode 14 +#define branch_v_mode 15 /* v_mode for branch. */ #define es_reg 100 #define cs_reg 101 @@ -3155,6 +3156,18 @@ OP_E (int bytemode, int sizeflag) else oappend (names32[rm + add]); break; + case branch_v_mode: + if (mode_64bit) + oappend (names64[rm + add]); + else + { + if ((sizeflag & DFLAG) || bytemode != branch_v_mode) + oappend (names32[rm + add]); + else + oappend (names16[rm + add]); + used_prefixes |= (prefixes & PREFIX_DATA); + } + break; case v_mode: case dq_mode: case dqw_mode: @@ -3256,6 +3269,7 @@ OP_E (int bytemode, int sizeflag) case dqw_mode: oappend ("WORD PTR "); break; + case branch_v_mode: case v_mode: case dq_mode: USED_REX (REX_MODE64); |