aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2006-09-23 23:10:14 +0000
committerH.J. Lu <hjl.tools@gmail.com>2006-09-23 23:10:14 +0000
commit539e75adb5c6632bd7e601a03185b865d751e23f (patch)
tree38a6bade71978aa8c5d8d0130de53bc214ec8fc6 /opcodes
parentb41e175056364479595c15b3bba30970dfc9fffc (diff)
downloadfsf-binutils-gdb-539e75adb5c6632bd7e601a03185b865d751e23f.zip
fsf-binutils-gdb-539e75adb5c6632bd7e601a03185b865d751e23f.tar.gz
fsf-binutils-gdb-539e75adb5c6632bd7e601a03185b865d751e23f.tar.bz2
gas/
2006-09-23 H.J. Lu <hongjiu.lu@intel.com> PR binutils/3235 * config/tc-i386.c (match_template): Check address size prefix to turn Disp64/Disp32/Disp16 operand into Disp32/Disp16/Disp32 operand. gas/testsuite/ 2006-09-23 H.J. Lu <hongjiu.lu@intel.com> PR binutils/3235 * gas/i386/addr16.d: New file. * gas/i386/addr16.s: Likewise. * gas/i386/addr32.d: Likewise. * gas/i386/addr32.s: Likewise. * gas/i386/i386.exp: Add "addr16" and "addr32". * gas/i386/x86-64-addr32.s: Add tests for "add32 mov". * gas/i386/x86-64-addr32.d: Updated. opcodes/ 2006-09-23 H.J. Lu <hongjiu.lu@intel.com> PR binutils/3235 * i386-dis.c (OP_OFF64): Get 32bit offset if there is an address size prefix.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog6
-rw-r--r--opcodes/i386-dis.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index b48077d..83c16bd 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,9 @@
+2006-09-23 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/3235
+ * i386-dis.c (OP_OFF64): Get 32bit offset if there is an
+ address size prefix.
+
2006-09-17 Mei Ligang <ligang@sunnorth.com.cn>
* score-dis.c: New file.
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index bcf3080..5172fc5 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -4693,7 +4693,8 @@ OP_OFF64 (int bytemode, int sizeflag)
{
bfd_vma off;
- if (address_mode != mode_64bit)
+ if (address_mode != mode_64bit
+ || (prefixes & PREFIX_ADDR))
{
OP_OFF (bytemode, sizeflag);
return;