summaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2009-11-13 23:13:47 +0000
committerH.J. Lu <hjl@lucon.org>2009-11-13 23:13:47 +0000
commit22fa620680c5a855324e47e7c19a5ee7ee11f5be (patch)
tree6e56e9ee4e2480f380bc910f05a7827954c86a82 /opcodes
parent000eadaa59bc28756e280b41b9c0e591d1ba51b2 (diff)
downloadbinutils-redhat-22fa620680c5a855324e47e7c19a5ee7ee11f5be.tar.gz
Check rex_ignored.
gas/testsuite/ 2009-11-13 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/rex.s: Add a test for VEX insn. * gas/i386/rex.d: Updated. opcodes/ 2009-11-13 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (print_insn): Check rex_ignored.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/i386-dis.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index ae0166ab41..82e5f8ab01 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,5 +1,9 @@
2009-11-13 H.J. Lu <hongjiu.lu@intel.com>
+ * i386-dis.c (print_insn): Check rex_ignored.
+
+2009-11-13 H.J. Lu <hongjiu.lu@intel.com>
+
* i386-dis.c (ckprefix): Updated to return 0 if number of
prefixes > 14 and record the last position for each prefix.
(lock_prefix): Removed.
diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index 4d71a00909..2b5718f164 100644
--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -10491,7 +10491,7 @@ print_insn (bfd_vma pc, disassemble_info *info)
}
/* Check if the REX prefix used. */
- if ((rex ^ rex_used) == 0)
+ if (rex_ignored == 0 && (rex ^ rex_used) == 0)
all_prefixes[last_rex_prefix] = 0;
/* Check if the SEG prefix used. */