mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 11:48:34 +02:00
* fixed aarch64 shifterop parsing in inline assembly
git-svn-id: trunk@41650 -
This commit is contained in:
parent
f7ee1a1da9
commit
d34e0b091b
@ -485,8 +485,8 @@ Unit racpugas;
|
||||
useszr:=false;
|
||||
for i:=low(instr.operands) to pred(opnr) do
|
||||
begin
|
||||
if (instr.operands[1].opr.typ=OPR_REGISTER) then
|
||||
case getsupreg(instr.operands[1].opr.reg) of
|
||||
if (instr.operands[i].opr.typ=OPR_REGISTER) then
|
||||
case getsupreg(instr.operands[i].opr.reg) of
|
||||
RS_XZR:
|
||||
useszr:=true;
|
||||
RS_SP:
|
||||
@ -494,7 +494,10 @@ Unit racpugas;
|
||||
end;
|
||||
end;
|
||||
result:=valid_shifter_operand(instr.opcode,useszr,usessp,instr.Is64bit,sm,instr.operands[opnr].opr.shifterop.shiftimm);
|
||||
end
|
||||
if result then
|
||||
instr.Ops:=opnr;
|
||||
end;
|
||||
break;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user