Fix two missing register operands in X86 AT&T syntax (#791)

* Bug fix: missing register operand in AT&T emitter for `movb %ax, imm`

* Bug fix: missing register operand in AT&T emitter for `movb %al, imm`
test2
Andrew Dutcher 8 years ago committed by Nguyen Anh Quynh
parent ce7c9a8ec5
commit 883c333f86
  1. 16
      arch/X86/X86Mapping.c

@ -2686,10 +2686,20 @@ static struct insn_reg insn_regs_att[] = {
{ X86_INSW, X86_REG_DX },
{ X86_INSL, X86_REG_DX },
{ X86_MOV64o64a, X86_REG_RAX },
{ X86_MOV32o32a, X86_REG_EAX },
{ X86_MOV64o32a, X86_REG_EAX },
{ X86_MOV8o16a, X86_REG_AL },
{ X86_MOV8o32a, X86_REG_AL },
{ X86_MOV8o64a, X86_REG_AL },
{ X86_MOV16o16a, X86_REG_AX },
{ X86_MOV16o32a, X86_REG_AX },
{ X86_MOV16o64a, X86_REG_AX },
{ X86_MOV32o16a, X86_REG_EAX },
{ X86_MOV32o32a, X86_REG_EAX },
{ X86_MOV32o64a, X86_REG_EAX },
{ X86_MOV64o32a, X86_REG_RAX },
{ X86_MOV64o64a, X86_REG_RAX },
{ X86_PUSHCS32, X86_REG_CS },
{ X86_PUSHDS32, X86_REG_DS },

Loading…
Cancel
Save