fpc/tests/webtbs/tw37218.pp
2020-06-20 20:17:53 +00:00

23 lines
242 B
ObjectPascal

{ %CPU=aarch64 }
program project1;
uses crt;
procedure test;
var a:uint64;
begin
a:=1;
asm
mov x4,# 0
mov x12,# 1
add x4,x4,x12,lsl # 2
str x4, a
end;
writeln(a);
if a<>4 then
halt(1);
end;
begin
test;
end.