x86-64 asm: Remove useless jmp opcode
Also remove the hacky mod/rm byte emission during disp/imm writing.
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user