fpc/tests/webtbs/tw17337.pp
pierre 973c23e12c * Fix for win64 GNU AS bug
git-svn-id: trunk@15939 -
2010-09-02 23:41:02 +00:00

33 lines
514 B
ObjectPascal

{ %target=win64, linux, freebsd }
{ %cpu=x86_64 }
{ %opt=-Aas }
{$asmmode att}
procedure test_gas;
var
test : qword;
begin
test:=$5ffffffff;
if (test < qword($2ffffffff)) then
runerror(1);
if (test < qword($ffffffff)) then
runerror(2);
asm
movq $0xffffffff,test
end;
if test <> $ffffffff then
runerror(5);
end ;
var
test : qword;
begin
test:=$5ffffffff;
if (test < qword($2ffffffff)) then
runerror(3);
if (test < qword($ffffffff)) then
runerror(4);
test_gas;
end.