* bail out early in MatchInstruction

This commit is contained in:
florian 2021-10-04 22:18:53 +02:00
parent 01a449c807
commit 1e136b0cc7

View File

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