mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-04 08:20:12 +08:00
arm-asm: Warn if regset registers are not specified in ascending order
This commit is contained in:
parent
49365d563e
commit
e0cb5184f5
@ -77,6 +77,8 @@ static void parse_operand(TCCState *s1, Operand *op)
|
||||
} else
|
||||
next(); // skip register name
|
||||
|
||||
if ((1 << reg) < regset)
|
||||
tcc_warning("registers will be processed in ascending order by hardware--but are not specified in ascending order here");
|
||||
regset |= 1 << reg;
|
||||
if (tok != ',')
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user