diff options
author | Jan Beulich <jbeulich@novell.com> | 2007-09-26 13:42:14 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2007-09-26 13:42:14 +0000 |
commit | 959175c5f0277ffff0e1d64d9e41fa0dfbd80159 (patch) | |
tree | a46892190ca267af088a6428227125928d9a7050 /opcodes/i386-dis.c | |
parent | 5e809318a6bb4dd9125fede147c46704485686ac (diff) | |
download | gdb-959175c5f0277ffff0e1d64d9e41fa0dfbd80159.tar.gz |
gas/testsuite/
2007-09-26 Jan Beulich <jbeulich@novell.com>
* gas/i386/x86-64-addr32.d: Adjust expectations.
opcodes/
2007-09-26 Jan Beulich <jbeulich@novell.com>
* i386-dis.c (OP_E_extended): Distinguish rip- and eip-
relative addressing. Update used_prefixes based on whether any
base or index register was printed.
Diffstat (limited to 'opcodes/i386-dis.c')
-rw-r--r-- | opcodes/i386-dis.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index ecb428fd8fc..e66875e44c8 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -6390,17 +6390,20 @@ OP_E_extended (int bytemode, int sizeflag, int has_drex) if (riprel) { set_op (disp, 1); - oappend ("(%rip)"); + oappend (sizeflag & AFLAG ? "(%rip)" : "(%eip)"); } } + if (havebase || haveindex || riprel) + used_prefixes |= PREFIX_ADDR; + if (havedisp || (intel_syntax && riprel)) { *obufp++ = open_char; if (intel_syntax && riprel) { set_op (disp, 1); - oappend ("rip"); + oappend (sizeflag & AFLAG ? "rip" : "eip"); } *obufp = '\0'; if (havebase) |