* fixed taarch64abi.pp so it doens't rely on undefined behaviour between the

end of an inline assembly block and the end of a routine

git-svn-id: trunk@41651 -
This commit is contained in:
Jonas Maebe 2019-03-09 16:11:34 +00:00
parent d34e0b091b
commit cb5b407e89

View File

@ -23,34 +23,28 @@ begin
Halt(3); Halt(3);
end; end;
function RetByte: byte; function RetByte: byte; assembler;
var asm
q: qword; movz x0,#22136
begin movk x0,#4660,lsl #16
q:=$1111111112345678; movk x0,#4369,lsl #32
asm movk x0,#4369,lsl #48
ldr x0,q
end;
end; end;
function RetWord: word; function RetWord: word; assembler;
var asm
q: qword; movz x0,#22136
begin movk x0,#4660,lsl #16
q:=$1111111112345678; movk x0,#4369,lsl #32
asm movk x0,#4369,lsl #48
ldr x0,q
end;
end; end;
function RetDWord: dword; function RetDWord: dword; assembler;
var asm
q: qword; movz x0,#22136
begin movk x0,#4660,lsl #16
q:=$1111111112345678; movk x0,#4369,lsl #32
asm movk x0,#4369,lsl #48
ldr x0,q
end;
end; end;
procedure TestParams; procedure TestParams;