mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11: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;
|
||||
|
||||
var
|
||||
@ -60,6 +61,14 @@ begin
|
||||
Writeln('Compiler does not push "pushl %gs" into 4 bytes');
|
||||
haserror:=true;
|
||||
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}
|
||||
if haserror then
|
||||
Halt(1);
|
||||
|
Loading…
Reference in New Issue
Block a user