mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 08:29:27 +02:00
+ added Intel check
This commit is contained in:
parent
8900400a2c
commit
077c5e97aa
@ -1,3 +1,4 @@
|
|||||||
|
{$R-}
|
||||||
program test_register_pushing;
|
program test_register_pushing;
|
||||||
|
|
||||||
var
|
var
|
||||||
@ -60,6 +61,14 @@ begin
|
|||||||
Writeln('Compiler does not push "pushl %gs" into 4 bytes');
|
Writeln('Compiler does not push "pushl %gs" into 4 bytes');
|
||||||
haserror:=true;
|
haserror:=true;
|
||||||
end;
|
end;
|
||||||
|
{$asmmode intel}
|
||||||
|
asm
|
||||||
|
mov before,esp
|
||||||
|
push es
|
||||||
|
mov after,esp
|
||||||
|
pop es
|
||||||
|
end;
|
||||||
|
Writeln('Intel "push es" uses ',before-after,' bytes');
|
||||||
{$endif CPUI386}
|
{$endif CPUI386}
|
||||||
if haserror then
|
if haserror then
|
||||||
Halt(1);
|
Halt(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user