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=13 Percentage= 26.00

Skipped=37 Percentage= 74.00

Result type Cat. Count Percentage First date Last Date
Successfully run 13 26.0 2024/06/02 01:33:00 35 2024/06/02 02:31:00 25
i386 13 100.0 2024/06/02 01:33:00 35 2024/06/02 02:31:00 25
linux 13 100.0 2024/06/02 01:33:00 35 2024/06/02 02:31:00 25
3.3.1 5 38.5 2024/06/02 01:33:00 35 2024/06/02 02:21:00 27
3.2.3 8 61.5 2024/06/02 01:51:00 43 2024/06/02 02:31:00 25
Skipping test because for other cpu 37 74.0 2024/06/02 01:34:00 16 2024/06/02 02:32:00 22
x86_64 35 94.6 2024/06/02 01:34:00 16 2024/06/02 02:32:00 22
aarch64 2 5.4 2024/06/02 02:17:00 38 2024/06/02 02:19:00 41
linux 37 100.0 2024/06/02 01:34:00 16 2024/06/02 02:32:00 22
3.3.1 22 59.5 2024/06/02 01:34:00 16 2024/06/02 02:32:00 22
3.2.3 15 40.5 2024/06/02 01:38:00 27 2024/06/02 02:31:00 34

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.