fpc/tests/webtbs/tw10641.pp
yury a9972b4309 * Disabled some tests for android.
git-svn-id: trunk@39981 -
2018-10-18 16:42:05 +00:00

32 lines
466 B
ObjectPascal

{ %cpu=x86_64 }
{ %opt=-vw -Sew }
{ %skiptarget=android }
{$ifdef windows}
{$imagebase $10000}
{$endif}
var
test : dword;
test2 : dword;
begin
test:=$deadbeef;
test2:=$deadbeef;
ASM
MOVL $16,%EAX
LEA .LLT(%RIP),%RBX
JMP (%RBX,%RAX)
.balign 16
.LLT:
.quad .L3,.L2,.L1
.L2:
MOVL $12341234,test2(%RIP)
JMP .L3
.L1:
MOVL $0,test(%RIP)
.L3:
END;
if (test<>0) or (test2<>$deadbeef) then
halt(1);
writeln('ok');
end.