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

t_id 1082
t_adddate 2003/10/14
t_result 0
Flag t_fail set
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=7 Percentage= 14.00

Skipped=43 Percentage= 86.00

Result type Cat. Count Percentage First date Last Date
Success, compilation failed 7 14.0 2024/05/08 17:34:00 34 2024/05/08 23:26:00 32
i386 7 100.0 2024/05/08 17:34:00 34 2024/05/08 23:26:00 32
linux 4 57.1 2024/05/08 19:08:00 176 2024/05/08 23:26:00 32
win32 3 42.9 2024/05/08 17:34:00 34 2024/05/08 19:00:00 22
3.3.1 3 42.9 2024/05/08 17:34:00 34 2024/05/08 19:00:00 22
3.2.3 4 57.1 2024/05/08 19:08:00 176 2024/05/08 23:26:00 32
Skipping test because for other cpu 43 86.0 2024/05/08 17:40:00 56 2024/05/08 23:27:00 38
m68k 3 7.0 2024/05/08 19:15:00 190 2024/05/08 20:43:00 63
sparc 5 11.6 2024/05/08 20:01:00 79 2024/05/08 23:27:00 38
powerpc 3 7.0 2024/05/08 19:37:00 185 2024/05/08 21:11:00 188
arm 3 7.0 2024/05/08 19:02:00 59 2024/05/08 20:25:00 69
x86_64 10 23.3 2024/05/08 19:43:00 23 2024/05/08 23:14:00 21
powerpc64 6 14.0 2024/05/08 19:44:00 213 2024/05/08 21:28:00 73
mips 3 7.0 2024/05/08 19:23:00 240 2024/05/08 20:52:00 160
mipsel 3 7.0 2024/05/08 19:30:00 229 2024/05/08 21:02:00 151
aarch64 4 9.3 2024/05/08 17:40:00 56 2024/05/08 20:16:00 46
sparc64 3 7.0 2024/05/08 20:18:00 148 2024/05/08 22:05:00 151
linux 33 76.7 2024/05/08 18:55:00 44 2024/05/08 22:13:00 104
solaris 2 4.7 2024/05/08 23:24:00 38 2024/05/08 23:27:00 38
darwin 1 2.3 2024/05/08 17:40:00 56 2024/05/08 17:40:00 56
win64 7 16.3 2024/05/08 19:43:00 23 2024/05/08 23:14:00 21
3.3.1 1 2.3 2024/05/08 23:14:00 21 2024/05/08 23:14:00 21
3.2.3 42 97.7 2024/05/08 17:40:00 56 2024/05/08 23:27:00 38

Source:

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

{$mode tp}

{$asmmode intel}

{ @Result in assembler functions where
  the function result is not on stack
  should be refused in Turbo Pascal mode }

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 webtbf/tw1157a.pp source.