aboutsummaryrefslogtreecommitdiff
path: root/i386-asm.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-05-11 18:56:19 +0200
committerMichael Matz <matz@suse.de>2016-05-11 18:56:19 +0200
commit613962e35399e0b87baf8ac031b74aecd09f24f1 (patch)
treeeb293c335d659f2f1868affbbb66c592820a7503 /i386-asm.c
parentbd93dc6923a9fe202401666a1f2749fbdced9971 (diff)
downloadtinycc-613962e35399e0b87baf8ac031b74aecd09f24f1.tar.gz
tinycc-613962e35399e0b87baf8ac031b74aecd09f24f1.tar.bz2
x86-64 asm: Remove useless jmp opcode
Also remove the hacky mod/rm byte emission during disp/imm writing.
Diffstat (limited to 'i386-asm.c')
-rw-r--r--i386-asm.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/i386-asm.c b/i386-asm.c
index 69514c0..2cbc858 100644
--- a/i386-asm.c
+++ b/i386-asm.c
@@ -1042,13 +1042,6 @@ ST_FUNC void asm_opcode(TCCState *s1, int opcode)
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
}
}
#ifdef I386_ASM_16