aboutsummaryrefslogtreecommitdiff
path: root/i386-asm.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-05-15 18:50:21 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:05 +0100
commit5a222588a81f1ad1d1a1fdf64a54109f809b9923 (patch)
tree6b35df1caf56280fafc48cffcd2ddabe967c0679 /i386-asm.c
parent8a10a442ffd44c54fcb41589239980974f31410f (diff)
downloadtinycc-5a222588a81f1ad1d1a1fdf64a54109f809b9923.tar.gz
tinycc-5a222588a81f1ad1d1a1fdf64a54109f809b9923.tar.bz2
x86-asm: Remove OPC_D16
Now that we can store prefixes even for 0x0fXX opcodes we can remove the OPC_D16 bit.
Diffstat (limited to 'i386-asm.c')
-rw-r--r--i386-asm.c3
1 files changed, 1 insertions, 2 deletions
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