mirror of
https://github.com/mirror/tinycc.git
synced 2026-09-01 12:07:53 +08:00
arm-asm: Warn if regset registers are not specified in ascending order
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user