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

t_id 775
t_version 1.1
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=5 Percentage= 10.00

Skipped=45 Percentage= 90.00

Result type Cat. Count Percentage First date Last Date
Successfully run 5 10.0 2024/10/19 08:55:00 60 2024/10/19 11:13:00 63
i386 5 100.0 2024/10/19 08:55:00 60 2024/10/19 11:13:00 63
linux 1 20.0 2024/10/19 10:08:00 202 2024/10/19 10:08:00 202
go32v2 4 80.0 2024/10/19 08:55:00 60 2024/10/19 11:13:00 63
3.3.1 5 100.0 2024/10/19 08:55:00 60 2024/10/19 11:13:00 63
Skipping test because for other cpu 45 90.0 2024/10/19 07:29:00 50 2024/10/19 13:36:00 24
m68k 3 6.7 2024/10/19 07:29:00 50 2024/10/19 10:22:00 40
sparc 3 6.7 2024/10/19 08:05:00 45 2024/10/19 10:30:00 43
powerpc 6 13.3 2024/10/19 08:40:00 51 2024/10/19 12:56:00 67
arm 2 4.4 2024/10/19 09:36:00 32 2024/10/19 10:03:00 32
x86_64 10 22.2 2024/10/19 08:40:00 45 2024/10/19 13:36:00 24
powerpc64 6 13.3 2024/10/19 08:43:00 65 2024/10/19 10:59:00 68
mips 2 4.4 2024/10/19 09:54:00 35 2024/10/19 10:28:00 38
mipsel 2 4.4 2024/10/19 09:59:00 38 2024/10/19 10:35:00 142
aarch64 6 13.3 2024/10/19 08:15:00 27 2024/10/19 09:57:00 26
sparc64 3 6.7 2024/10/19 08:33:00 120 2024/10/19 10:46:00 141
riscv64 1 2.2 2024/10/19 10:25:00 33 2024/10/19 10:25:00 33
loongarch64 1 2.2 2024/10/19 09:45:00 25 2024/10/19 09:45:00 25
linux 32 71.1 2024/10/19 07:29:00 50 2024/10/19 11:38:00 25
solaris 7 15.6 2024/10/19 13:22:00 24 2024/10/19 13:36:00 24
aix 6 13.3 2024/10/19 08:40:00 51 2024/10/19 12:56:00 67
3.3.1 23 51.1 2024/10/19 08:05:00 45 2024/10/19 12:56:00 67
3.2.3 22 48.9 2024/10/19 07:29:00 50 2024/10/19 13:36:00 24

Source:

{ %version=1.1 }

{ Source provided for Free Pascal Bug Report 1157 }
{ Submitted by "Colin Goldie" on  2000-10-06 }
{ e-mail: Colin_G@Positek.com.au }
{$ifdef fpc}
{$mode delphi}

{$asmmode intel}
{$endif}

{ @Result in assembler functions should create only a temporary
  variable when it is used }

Function GetBLUEfromRGB( color : word ) : byte; assembler;
asm
    mov cx,color
    and cx,1fh
    mov @Result,cl
    mov ax,255
end;

{
Does something weird .. to the stack im guessing ... error 206 and 103
errors occur 'File not open' ...

However, if instead of using @Result , i chuck my return value into the
accumulator register , everything thing works hunky dory.
}

Function GetBLUEfromRGB2( color : word ) : byte; assembler;
asm
     mov cx,color
     and cx,1fh
     mov al,cl
end;

begin
  if GetBlueFromRGB2($fff)<>GetBlueFromRGB($fff) then
    begin
      Writeln('Error in assembler statement');
      Halt(1);
    end;
end.

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