mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-24 22:00:58 +01:00
* fix test for arm
git-svn-id: trunk@42538 -
This commit is contained in:
parent
9560d63e42
commit
bdd4b6691e
@ -19,7 +19,7 @@ program ExecStack;
|
|||||||
ret: Byte;
|
ret: Byte;
|
||||||
{$endif}
|
{$endif}
|
||||||
{$ifdef cpuarm}
|
{$ifdef cpuarm}
|
||||||
'add arm code to test stack execution'
|
ret: dword;
|
||||||
{$endif}
|
{$endif}
|
||||||
{$ifdef cpumips}
|
{$ifdef cpumips}
|
||||||
ret: array[0..1] of longword;
|
ret: array[0..1] of longword;
|
||||||
@ -77,6 +77,23 @@ program ExecStack;
|
|||||||
DoNothing;
|
DoNothing;
|
||||||
{$endif cpum68k}
|
{$endif cpum68k}
|
||||||
|
|
||||||
|
{$ifdef cpuarm}
|
||||||
|
{$if defined(CPUTHUMB) or defined(CPUTHUMB2)}
|
||||||
|
{$ifdef CPUARM_HAS_BX}
|
||||||
|
ret:=$4770;
|
||||||
|
{$else}
|
||||||
|
ret:=$46f7;
|
||||||
|
{$endif}
|
||||||
|
{$else defined(CPUTHUMB) or defined(CPUTHUMB2)}
|
||||||
|
ret:=$e8bd8008;
|
||||||
|
{$endif defined(CPUTHUMB) or defined(CPUTHUMB2)}
|
||||||
|
{$ifdef ENDIAN_BIG}
|
||||||
|
ret:=SwapEndian(ret);
|
||||||
|
{$endif ENDIAN_BIG}
|
||||||
|
DoNothing:=proc(@ret);
|
||||||
|
DoNothing;
|
||||||
|
{$endif cpuarm}
|
||||||
|
|
||||||
end;
|
end;
|
||||||
begin
|
begin
|
||||||
DoIt;
|
DoIt;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user