Test suite results for test file webtbs/tw3540.pp

Test run data :

Free Pascal Compiler Test Suite Results

View Test suite results

Please specify search criteria:
File:
Operating system:
Processor:
Version
Date
Submitter
Machine
Comment
Limit
Cond
Category
Only failed tests
Hide skipped tests
List all tests

Test file "webtbs/tw3540.pp" information:

t_id 1460
t_cpu i386 %opt=-s -Amasm
t_adddate 2005/01/25
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=0 Percentage= 0.00

Skipped=50 Percentage= 100.00

Result type Cat. Count Percentage First date Last Date
Skipping test because for other cpu 44 88.0 2024/05/08 17:02:00 31 2024/05/08 22:24:00 37
m68k 3 6.8 2024/05/08 19:15:00 190 2024/05/08 20:43:00 63
sparc 3 6.8 2024/05/08 20:01:00 79 2024/05/08 21:40:00 68
powerpc 3 6.8 2024/05/08 19:37:00 185 2024/05/08 21:11:00 188
arm 3 6.8 2024/05/08 19:02:00 59 2024/05/08 20:25:00 69
x86_64 9 20.5 2024/05/08 19:43:00 23 2024/05/08 22:24:00 37
powerpc64 6 13.6 2024/05/08 19:44:00 213 2024/05/08 21:28:00 73
mips 3 6.8 2024/05/08 19:23:00 240 2024/05/08 20:52:00 160
mipsel 3 6.8 2024/05/08 19:30:00 229 2024/05/08 21:02:00 151
aarch64 8 18.2 2024/05/08 17:02:00 31 2024/05/08 20:16:00 46
sparc64 3 6.8 2024/05/08 20:18:00 148 2024/05/08 22:05:00 151
linux 33 75.0 2024/05/08 18:55:00 44 2024/05/08 22:13:00 104
darwin 5 11.4 2024/05/08 17:02:00 31 2024/05/08 17:40:00 56
win64 6 13.6 2024/05/08 19:43:00 23 2024/05/08 22:24:00 37
3.2.3 44 100.0 2024/05/08 17:02:00 31 2024/05/08 22:24:00 37
Skipping test because for other target 3 6.0 2024/05/08 19:08:00 176 2024/05/08 20:34:00 44
i386 3 100.0 2024/05/08 19:08:00 176 2024/05/08 20:34:00 44
linux 3 100.0 2024/05/08 19:08:00 176 2024/05/08 20:34:00 44
3.2.3 3 100.0 2024/05/08 19:08:00 176 2024/05/08 20:34:00 44
Skipping run test 3 6.0 2024/05/08 17:34:00 34 2024/05/08 19:00:00 22
i386 3 100.0 2024/05/08 17:34:00 34 2024/05/08 19:00:00 22
win32 3 100.0 2024/05/08 17:34:00 34 2024/05/08 19:00:00 22
3.3.1 3 100.0 2024/05/08 17:34:00 34 2024/05/08 19:00:00 22

Source:

{ %cpu=i386 %opt=-s -Amasm -TWin32 -Rintel}
{ Source provided for Free Pascal Bug Report 3540 }
{ Submitted by "Vladimir Panteleev" on  2005-01-11 }
{ e-mail: thecybershadow@gmail.com }
library Test;

type
  Integer=LongInt;

  ULONG=Cardinal;
  PUCHAR=PChar;

type
  TMyVars=record
    RandSeed: Integer;
    SX: Integer;
    end;

  TMyData=record
    SomeConst: Integer;
    end;

var
  RMyData:TMyData=(
    SomeConst: 31337;
    );

{$R-,Q-}

function CalcAddr(const V):Pointer;stdcall;assembler;
var
  P: Integer absolute V;
asm
  call @@next
@@next:
  pop eax
  sub eax, offset @@next
  add eax, P
end;

type
  PMyVars=^TMyVars;

var
  RMyVars: TMyVars;

function MyVars:PMyVars;
begin MyVars:=CalcAddr(RMyVars) end;

type
  PMyData=^TMyData;

function MyData:PMyData;
begin MyData:=CalcAddr(RMyData) end;

procedure VidBufferToScreenBlt(Buffer:PUCHAR; x:ULONG; y:ULONG; width:ULONG; height:ULONG; lDelta:ULONG); stdcall; external;
type TPalette=array[0..15,0..3]of byte;PPalette=^TPalette;
function Palette:PPalette; external;

type
  TBitmapInfo=record
    Width, Height: Word;
    Bits: Pointer;
    end;

procedure DrawBitmap(X, Y: Integer; const Bitmap: TBitmapInfo);
begin
  VidBufferToScreenBlt(CalcAddr(Bitmap.Bits^), X, Y, Bitmap.Width, Bitmap.Height, 4);
end;

const
  test_palette: TPalette = (
    ($00, $00, $00, 0),
    ($80, $00, $00, 0),
    ($00, $80, $00, 0),
    ($80, $80, $00, 0),
    ($00, $00, $80, 0),
    ($80, $00, $80, 0),
    ($00, $80, $80, 0),
    ($80, $80, $80, 0),
    ($C0, $C0, $C0, 0),
    ($FF, $00, $00, 0),
    ($00, $FF, $00, 0),
    ($FF, $FF, $00, 0),
    ($00, $00, $FF, 0),
    ($FF, $00, $FF, 0),
    ($00, $FF, $FF, 0),
    ($FF, $FF, $FF, 0));

procedure Draw; stdcall;
var
  i:integer;
  x1,y1,x2,y2:integer;
begin
  Palette^:=TPalette(CalcAddr(Test_palette)^);
end;

end.

Link to SVN view of webtbs/tw3540.pp source.