mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 06:06:17 +02:00
* bail out early in MatchInstruction
This commit is contained in:
parent
01a449c807
commit
1e136b0cc7
@ -278,11 +278,12 @@ unit aoptx86;
|
||||
op : TAsmOp;
|
||||
begin
|
||||
result:=false;
|
||||
if (instr.typ <> ait_instruction) or
|
||||
((opsize <> []) and not(taicpu(instr).opsize in opsize)) then
|
||||
exit;
|
||||
for op in ops do
|
||||
begin
|
||||
if (instr.typ = ait_instruction) and
|
||||
(taicpu(instr).opcode = op) and
|
||||
((opsize = []) or (taicpu(instr).opsize in opsize)) then
|
||||
if taicpu(instr).opcode = op then
|
||||
begin
|
||||
result:=true;
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user