fpc/tests/webtbs/tw39372.pp
Jonas Maebe c745ae4836 AArch64 popt: don't replace registers with X/WZR
Most arithmetic/logica instructions don't support X/WZR as operand (since
you should use movk with the calculated constant in that case)

Resolves #39372
2021-10-04 20:58:05 +02:00

23 lines
285 B
ObjectPascal

{ %norun }
{ %opt=-O-1 }
{ helpers can extend type parameters if they can only be classes }
program Arm64Peep;
{$ifdef fpc}
{$mode delphi}
{$endif}
type bob = class
function doInc: integer;
end;
function bob.doInc: integer;
begin
Result := 0;
Inc(Result, 32);
end;
begin
end.