inline asm: Accept 'p' constraint and 'P' template mod
'p' is conservatively the same as 'r' and 'P' as template modifier can be ignored in TCC.
This commit is contained in:
@ -1002,6 +1002,7 @@ static inline int constraint_priority(const char *str)
|
||||
pr = 2;
|
||||
break;
|
||||
case 'r':
|
||||
case 'p':
|
||||
pr = 3;
|
||||
break;
|
||||
case 'N':
|
||||
@ -1170,6 +1171,7 @@ ST_FUNC void asm_compute_constraints(ASMOperand *operands,
|
||||
}
|
||||
goto try_next;
|
||||
case 'r':
|
||||
case 'p': /* A general address, for x86(64) any register is acceptable*/
|
||||
/* any general register */
|
||||
for(reg = 0; reg < 8; reg++) {
|
||||
if (!is_reg_allocated(reg))
|
||||
|
||||
Reference in New Issue
Block a user