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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user