x86-64 asm: Remove useless jmp opcode

Also remove the hacky mod/rm byte emission during
disp/imm writing.
This commit is contained in:
Michael Matz
2016-05-11 18:56:19 +02:00
parent bd93dc6923
commit 613962e353
3 changed files with 1 additions and 8 deletions

View File

@ -1041,13 +1041,6 @@ ST_FUNC void asm_opcode(TCCState *s1, int opcode)
/* jmp $r */
g(0xE0 + ops[i].reg);
}
#endif
#ifdef TCC_TARGET_X86_64
} else if (v & (OP_REG32 | OP_REG64)) {
if (pa->instr_type & (OPC_JMP | OPC_SHORTJMP)) {
/* jmp $r */
g(0xE0 + ops[i].reg);
}
#endif
}
}