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

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

Detailed test run results:

Record count: 50

Total = 50

OK=28 Percentage= 56.00

Skipped=22 Percentage= 44.00

Result type Cat. Count Percentage First date Last Date
Successfully run 28 56.0 2024/05/09 00:23:00 26 2024/05/09 01:28:00 0
i386 28 100.0 2024/05/09 00:23:00 26 2024/05/09 01:28:00 0
linux 28 100.0 2024/05/09 00:23:00 26 2024/05/09 01:28:00 0
3.3.1 19 67.9 2024/05/09 01:07:00 28 2024/05/09 01:28:00 0
3.2.3 9 32.1 2024/05/09 00:23:00 26 2024/05/09 01:16:00 28
Skipping test because for other cpu 22 44.0 2024/05/08 23:55:00 41 2024/05/09 01:26:00 0
sparc 3 13.6 2024/05/08 23:55:00 41 2024/05/09 01:13:00 46
x86_64 8 36.4 2024/05/09 00:13:00 26 2024/05/09 01:24:00 21
powerpc64 10 45.5 2024/05/09 00:27:00 46 2024/05/09 01:26:00 0
aarch64 1 4.5 2024/05/09 00:58:00 35 2024/05/09 00:58:00 35
linux 17 77.3 2024/05/09 00:27:00 46 2024/05/09 01:26:00 0
solaris 3 13.6 2024/05/08 23:55:00 41 2024/05/09 01:13:00 46
win64 2 9.1 2024/05/09 00:13:00 26 2024/05/09 00:57:00 26
3.3.1 20 90.9 2024/05/09 00:13:00 26 2024/05/09 01:26:00 0
3.2.3 2 9.1 2024/05/08 23:55:00 41 2024/05/09 00:54:00 39

Source:

{ %CPU=i386 }
{ Source provided for Free Pascal Bug Report 1157 }
{ Submitted by "Colin Goldie" on  2000-10-06 }
{ e-mail: Colin_G@Positek.com.au }

{$asmmode intel}

Function GetBLUEfromRGB( color : word ) : byte; assembler;
asm
    mov cx,color
    and cx,0000000000011111b
    mov @Result,cl
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,0000000000011111b
     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/tw1157.pp source.