mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-04 06:30:10 +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 '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;
|
||||
|
Loading…
Reference in New Issue
Block a user