History

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

Danny Milosavljevic committed 5 years ago

Commit e0cb5181 parent 49365d51 file · +2 −0Browse files

Unified · Split

arm-asm.c+2−0
@@ -77,6 +77,8 @@ static void parse_operand(TCCState *s1, Operand *op) · 76 unmodified lines
77 } else77 } else
78 next(); // skip register name78 next(); // skip register name
79 79
80 if ((1 << reg) < regset)
81 tcc_warning("registers will be processed in ascending order by hardware--but are not specified in ascending order here");
80 regset |= 1 << reg;82 regset |= 1 << reg;
81 if (tok != ',')83 if (tok != ',')
82 break;84 break;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t