History

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".

Michael Matz committed 10 years ago

Commit e5f4f8d1 parent bbce3151 file · +2 −0Browse files

Unified · Split

i386-asm.c+2−0
@@ -1017,6 +1017,7 @@ static inline int constraint_priority(const char *str) · 1016 unmodified lines
1017 case 'N':1017 case 'N':
1018 case 'M':1018 case 'M':
1019 case 'I':1019 case 'I':
1020 case 'e':
1020 case 'i':1021 case 'i':
1021 case 'm':1022 case 'm':
1022 case 'g':1023 case 'g':
@@ -1193,6 +1194,7 @@ ST_FUNC void asm_compute_constraints(ASMOperand *operands, · 170 unmodified lines
1193 op->reg = reg;1194 op->reg = reg;
1194 regs_allocated[reg] |= reg_mask;1195 regs_allocated[reg] |= reg_mask;
1195 break;1196 break;
1197 case 'e':
1196 case 'i':1198 case 'i':
1197 if (!((op->vt->r & (VT_VALMASK | VT_LVAL)) == VT_CONST))1199 if (!((op->vt->r & (VT_VALMASK | VT_LVAL)) == VT_CONST))
1198 goto try_next;1200 goto try_next;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t