Test suite results for test file webtbs/tw1066b.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/tw1066b.pp" information:

t_id 755
t_cpu i386
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=6 Percentage= 12.00

Skipped=44 Percentage= 88.00

Result type Cat. Count Percentage First date Last Date
Successfully run 6 12.0 2024/05/08 17:34:00 34 2024/05/08 20:34:00 44
i386 6 100.0 2024/05/08 17:34:00 34 2024/05/08 20:34:00 44
linux 3 50.0 2024/05/08 19:08:00 176 2024/05/08 20:34:00 44
win32 3 50.0 2024/05/08 17:34:00 34 2024/05/08 19:00:00 22
3.3.1 3 50.0 2024/05/08 17:34:00 34 2024/05/08 19:00:00 22
3.2.3 3 50.0 2024/05/08 19:08:00 176 2024/05/08 20:34:00 44
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

Source:

{ %CPU=i386 }
{----------------cut here----------------}

{$asmmode intel}
{$inline on}

var
 somevar:longint;


procedure wastememory(x,y,color:longint);assembler;inline;
asm
mov edi,x
mov eax,y
cmp edi,0
jl @@wastememoryend
cmp eax,0
jl @@wastememoryend
cmp edi,1023
jg @@wastememoryend
cmp eax,767
jg @@wastememoryend
shl eax,12
mov ebx,color
add eax,somevar
mov [eax+edi*4],ebx
@@wastememoryend:
end ['eax','ebx','edi'];


procedure wastememory2(y,x1,x2,color:longint);assembler;inline;
asm
mov edi,x1
mov ecx,x2
mov eax,y
cmp edi,ecx
jle @@wastememory2dirok
xchg edi,ecx
@@wastememory2dirok:
cmp eax,0
jl @@endwastememory2
cmp eax,767
jg @@endwastememory2
cmp ecx,0
jl @@endwastememory2
cmp edi,1023
jg @@endwastememory2
cmp edi,0
jge @@wastememory2x1ok
mov edi,0
@@wastememory2x1ok:
cmp ecx,1023
jle @@wastememory2x2ok
mov ecx,1023
@@wastememory2x2ok:
sub ecx,edi
shl eax,12
inc ecx
add eax,somevar
cld
lea edi,[eax+4*edi]
mov eax,color
rep stosd
@@endwastememory2:
end ['eax','ecx','edi'];


function str(w:word):string;
var tmp:string;
begin
system.str(w,tmp);
str:=tmp;
end;

function str(l:longint):string;
var tmp:string;
begin
system.str(l,tmp);
str:=tmp;
end;


procedure testcompiler(x0,y0,r,color:longint);
var x,y:longint;
begin
for x:=0 to trunc(r*(sqrt(2)/2))+1 do
 begin
 y:=round(sqrt(r*r-x*x));
 wastememory(x0+x,y0+y,color);
 wastememory(x0-x,y0+y,color);
 wastememory(x0+x,y0-y,color);
 wastememory(x0-x,y0-y,color);
 wastememory(x0+y,y0+x,color);
 wastememory(x0-y,y0+x,color);
 wastememory(x0+y,y0-x,color);
 wastememory(x0-y,y0-x,color);
 end;
end;


procedure testcompiler2(x0,y0,r,color:longint);
var x,y:longint;
begin
for x:=0 to trunc(r*(sqrt(2)/2))+1 do
 begin
 y:=round(sqrt(r*r-x*x));
 wastememory2(y0+y,x0-x,x0+x,color);
 wastememory2(y0-y,x0-x,x0+x,color);
 wastememory2(y0+x,x0-y,x0+y,color);
 wastememory2(y0-x,x0-y,x0+y,color);
 end;
end;


begin

end.

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