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".
This commit is contained in:
Michael Matz 2016-07-11 17:03:53 +02:00
parent bbce31552e
commit e5f4f8d0e7

View File

@ -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;