diff options
| author | Michael Matz <matz@suse.de> | 2016-07-11 19:45:51 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2016-12-15 17:47:08 +0100 |
| commit | 75e8df126f8ec9905a6630e5619f74589eb38509 (patch) | |
| tree | c3d349fa41c17d85a0f3ff1fe2c1bee41cde0240 | |
| parent | f6c1eb10e2b1f61210484958b181df20c6b0cad2 (diff) | |
| download | tinycc-75e8df126f8ec9905a6630e5619f74589eb38509.tar.gz tinycc-75e8df126f8ec9905a6630e5619f74589eb38509.tar.bz2 | |
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.
| -rw-r--r-- | i386-asm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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++) { |
