From e5f4f8d0e7966a4ed50849ded52c5274a1ff55db Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 11 Jul 2016 17:03:53 +0200 Subject: [PATCH] inline asm: Accept "e" constraint This is meant to be a (sign-extended) 32bit constant (possibly symbolic). We don't do any checks and simply regard it as "i". --- i386-asm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/i386-asm.c b/i386-asm.c index ea15140a..b02026e0 100644 --- a/i386-asm.c +++ b/i386-asm.c @@ -1017,6 +1017,7 @@ static inline int constraint_priority(const char *str) case 'N': case 'M': case 'I': + case 'e': case 'i': case 'm': case 'g': @@ -1193,6 +1194,7 @@ ST_FUNC void asm_compute_constraints(ASMOperand *operands, op->reg = reg; regs_allocated[reg] |= reg_mask; break; + case 'e': case 'i': if (!((op->vt->r & (VT_VALMASK | VT_LVAL)) == VT_CONST)) goto try_next;