mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-03 11:19:02 +02:00
Fix ARM ASM-reader for MVN/CMP/CMN/TST/TEQ
Like MOV these instructions support 2 operands, with the second beeing a shifterop. Without this patch the asm reader would fail on something like cmp r0, r1, lsr 16 with Error: Unknown identifier "LSR" git-svn-id: trunk@21911 -
This commit is contained in:
parent
607b86f582
commit
aa4fe66153
@ -978,7 +978,7 @@ Unit raarmgas;
|
||||
case actasmtoken of
|
||||
AS_COMMA: { Operand delimiter }
|
||||
Begin
|
||||
if ((instr.opcode=A_MOV) and (operandnum=2)) or
|
||||
if ((instr.opcode in [A_MOV, A_MVN, A_CMP, A_CMN, A_TST, A_TEQ]) and (operandnum=2)) or
|
||||
((operandnum=3) and not(instr.opcode in [A_UMLAL,A_UMULL,A_SMLAL,A_SMULL,A_MLA])) then
|
||||
begin
|
||||
Consume(AS_COMMA);
|
||||
|
Loading…
Reference in New Issue
Block a user