mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 17:29:33 +02:00
* Values outside signed 32-bit can only be assigned to a 64-bit register in one instruction, not to memory
git-svn-id: trunk@19512 -
This commit is contained in:
parent
f5d2c3a446
commit
d3e50e9aa8
@ -4,7 +4,7 @@
|
||||
|
||||
{$asmmode att}
|
||||
|
||||
procedure test_gas;
|
||||
procedure test_gas;
|
||||
var
|
||||
test : qword;
|
||||
begin
|
||||
@ -14,12 +14,13 @@ begin
|
||||
if (test < qword($ffffffff)) then
|
||||
runerror(2);
|
||||
asm
|
||||
movq $0xffffffff,test
|
||||
movq $0xffffffff,%rax
|
||||
movq %rax,test
|
||||
end;
|
||||
if test <> $ffffffff then
|
||||
runerror(5);
|
||||
end ;
|
||||
|
||||
|
||||
var
|
||||
test : qword;
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user