From 613962e35399e0b87baf8ac031b74aecd09f24f1 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Wed, 11 May 2016 18:56:19 +0200 Subject: x86-64 asm: Remove useless jmp opcode Also remove the hacky mod/rm byte emission during disp/imm writing. --- i386-asm.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'i386-asm.c') diff --git a/i386-asm.c b/i386-asm.c index 69514c0..2cbc858 100644 --- a/i386-asm.c +++ b/i386-asm.c @@ -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 } } -- cgit v1.3.1