mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-26 12:04:59 +08:00
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:
parent
bbce31552e
commit
e5f4f8d0e7
@ -1017,6 +1017,7 @@ static inline int constraint_priority(const char *str)
|
|||||||
case 'N':
|
case 'N':
|
||||||
case 'M':
|
case 'M':
|
||||||
case 'I':
|
case 'I':
|
||||||
|
case 'e':
|
||||||
case 'i':
|
case 'i':
|
||||||
case 'm':
|
case 'm':
|
||||||
case 'g':
|
case 'g':
|
||||||
@ -1193,6 +1194,7 @@ ST_FUNC void asm_compute_constraints(ASMOperand *operands,
|
|||||||
op->reg = reg;
|
op->reg = reg;
|
||||||
regs_allocated[reg] |= reg_mask;
|
regs_allocated[reg] |= reg_mask;
|
||||||
break;
|
break;
|
||||||
|
case 'e':
|
||||||
case 'i':
|
case 'i':
|
||||||
if (!((op->vt->r & (VT_VALMASK | VT_LVAL)) == VT_CONST))
|
if (!((op->vt->r & (VT_VALMASK | VT_LVAL)) == VT_CONST))
|
||||||
goto try_next;
|
goto try_next;
|
||||||
|
Loading…
Reference in New Issue
Block a user