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=39 Percentage= 78.00

Skipped=11 Percentage= 22.00

Result type Cat. Count Percentage First date Last Date
Successfully run 39 78.0 2024/05/18 00:21:00 24 2024/05/18 01:32:00 24
i386 39 100.0 2024/05/18 00:21:00 24 2024/05/18 01:32:00 24
linux 38 97.4 2024/05/18 00:34:00 24 2024/05/18 01:32:00 24
win32 1 2.6 2024/05/18 00:21:00 24 2024/05/18 00:21:00 24
3.3.1 17 43.6 2024/05/18 00:21:00 24 2024/05/18 01:32:00 24
3.2.3 22 56.4 2024/05/18 00:34:00 24 2024/05/18 01:31:00 26
Skipping test because for other cpu 11 22.0 2024/05/17 23:52:00 41 2024/05/18 01:32:00 15
sparc 1 9.1 2024/05/17 23:52:00 41 2024/05/17 23:52:00 41
x86_64 6 54.5 2024/05/18 00:21:00 30 2024/05/18 01:32:00 15
powerpc64 2 18.2 2024/05/18 01:09:00 101 2024/05/18 01:11:00 108
aarch64 2 18.2 2024/05/18 00:11:00 33 2024/05/18 00:52:00 35
linux 7 63.6 2024/05/18 00:11:00 33 2024/05/18 01:32:00 15
solaris 4 36.4 2024/05/17 23:52:00 41 2024/05/18 00:34:00 30
3.3.1 6 54.5 2024/05/18 00:11:00 33 2024/05/18 01:32:00 15
3.2.3 5 45.5 2024/05/17 23:52:00 41 2024/05/18 01:24:00 26

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.