aboutsummaryrefslogtreecommitdiff
path: root/i386-asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'i386-asm.c')
-rw-r--r--i386-asm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/i386-asm.c b/i386-asm.c
index 5d7ee68..dd8bb98 100644
--- a/i386-asm.c
+++ b/i386-asm.c
@@ -869,6 +869,9 @@ ST_FUNC void asm_opcode(TCCState *s1, int opcode)
if ((opcode == TOK_ASM_push || opcode == TOK_ASM_pop) &&
(ops[0].type & (OP_SEG | OP_IM8S | OP_IM32)))
s = 2;
+ else if ((opcode == TOK_ASM_push || opcode == TOK_ASM_pop) &&
+ (ops[0].type & OP_EA))
+ s = NBWLX - 2;
else
tcc_error("cannot infer opcode suffix");
}