[PATCH] X86: Disassemble primary opcode map's group 2 ModRM.reg == 6 aliases correctly
Jan Beulich
JBeulich@suse.com
Mon May 29 20:58:00 GMT 2017
>>> On 28.05.17 at 22:32, <bp@suse.de> wrote:
> --- a/opcodes/i386-dis.c
> +++ b/opcodes/i386-dis.c
> @@ -3438,7 +3438,7 @@ static const struct dis386 reg_table[][8] = {
> { "rcrA", { Eb, Ib }, 0 },
> { "shlA", { Eb, Ib }, 0 },
> { "shrA", { Eb, Ib }, 0 },
> - { Bad_Opcode },
> + { "shlA", { Eb, Ib }, 0 },
> { "sarA", { Eb, Ib }, 0 },
I think it would be slightly better to name all these opcodes SAL.
That way the output would immediately make clear that it's the
alias which is in use, and it would be in line with its neighbor
being SAR.
Jan
More information about the Binutils
mailing list