x86-64-asm: Accept high register in clobbers

The callee saved registers (among them r12-r15) really need
saving/restoring if mentioned in asm clobbers, even if TCC
itself doesn't use them.  E.g. the linux kernel relies on that
in its switch_to() implementation.
This commit is contained in:
Michael Matz
2016-10-08 22:50:16 +02:00
parent ddd461dcc8
commit a2a596e767
3 changed files with 53 additions and 18 deletions

View File

@ -24,7 +24,7 @@
/* number of available registers */
#define NB_REGS 25
#define NB_ASM_REGS 8
#define NB_ASM_REGS 16
/* a register can belong to several classes. The classes must be
sorted from more general to more precise (see gv2() code which does