From 22fa620680c5a855324e47e7c19a5ee7ee11f5be Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 13 Nov 2009 23:13:47 +0000 Subject: Check rex_ignored. gas/testsuite/ 2009-11-13 H.J. Lu * gas/i386/rex.s: Add a test for VEX insn. * gas/i386/rex.d: Updated. opcodes/ 2009-11-13 H.J. Lu * i386-dis.c (print_insn): Check rex_ignored. --- opcodes/ChangeLog | 4 ++++ opcodes/i386-dis.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'opcodes') diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index ae0166ab41..82e5f8ab01 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2009-11-13 H.J. Lu + + * i386-dis.c (print_insn): Check rex_ignored. + 2009-11-13 H.J. Lu * i386-dis.c (ckprefix): Updated to return 0 if number of 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. */ -- cgit v1.2.1