arm-asm: Warn if regset registers are not specified in ascending order

This commit is contained in:
Danny Milosavljevic 2020-12-27 16:13:18 +01:00
parent 49365d563e
commit e0cb5184f5
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5

View File

@ -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;