From 5a222588a81f1ad1d1a1fdf64a54109f809b9923 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sun, 15 May 2016 18:50:21 +0200 Subject: x86-asm: Remove OPC_D16 Now that we can store prefixes even for 0x0fXX opcodes we can remove the OPC_D16 bit. --- i386-asm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'i386-asm.c') diff --git a/i386-asm.c b/i386-asm.c index e9e126f..a087188 100644 --- a/i386-asm.c +++ b/i386-asm.c @@ -48,7 +48,6 @@ #define OPC_SHORTJMP 0x80 /* short jmp operand */ #define OPC_0F 0x100 /* Is secondary map (0x0f prefix) */ -#define OPC_D16 0x0800 /* generate data16 prefix */ #ifdef TCC_TARGET_X86_64 # define OPC_WLQ 0x1000 /* accepts w, l, q or no suffix */ # define OPC_BWLQ (OPC_B | OPC_WLQ) /* accepts b, w, l, q or no suffix */ @@ -752,7 +751,7 @@ ST_FUNC void asm_opcode(TCCState *s1, int opcode) #endif /* generate data16 prefix if needed */ p66 = 0; - if (s == 1 || (pa->instr_type & OPC_D16)) + if (s == 1) p66 = 1; else { /* accepting mmx+sse in all operands --> needs 0x66 to -- cgit v1.3.1