mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-04 06:30:10 +08:00
inline asm: Accept 'R' constraint
This is like 'r' but only accepts the eight legacy regs. Currently that's the same as 'r' because we don't support the high ones.
This commit is contained in:
parent
f6c1eb10e2
commit
75e8df126f
@ -1011,6 +1011,7 @@ static inline int constraint_priority(const char *str)
|
||||
pr = 2;
|
||||
break;
|
||||
case 'r':
|
||||
case 'R':
|
||||
case 'p':
|
||||
pr = 3;
|
||||
break;
|
||||
@ -1181,6 +1182,7 @@ ST_FUNC void asm_compute_constraints(ASMOperand *operands,
|
||||
}
|
||||
goto try_next;
|
||||
case 'r':
|
||||
case 'R':
|
||||
case 'p': /* A general address, for x86(64) any register is acceptable*/
|
||||
/* any general register */
|
||||
for(reg = 0; reg < 8; reg++) {
|
||||
|
Loading…
Reference in New Issue
Block a user