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

t_id 1023
t_cpu i386
t_adddate 2003/10/14
t_result 0
t_knownrunerror 0
t_opts -O2

Detailed test run results:

Record count: 50

Total = 50

OK=0 Percentage= 0.00

Skipped=50 Percentage= 100.00

Result type Cat. Count Percentage First date Last Date
Skipping test because for other cpu 46 92.0 2024/09/26 18:42:00 90 2024/09/26 23:02:00 44
powerpc 14 30.4 2024/09/26 19:41:00 35 2024/09/26 23:02:00 44
powerpc64 17 37.0 2024/09/26 18:42:00 90 2024/09/26 22:29:00 103
wasm32 7 15.2 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
riscv64 8 17.4 2024/09/26 19:14:00 123 2024/09/26 19:59:00 123
linux 39 84.8 2024/09/26 18:42:00 90 2024/09/26 23:02:00 44
wasi 7 15.2 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
3.3.1 30 65.2 2024/09/26 18:42:00 90 2024/09/26 22:50:00 299
3.2.3 16 34.8 2024/09/26 21:17:00 71 2024/09/26 23:02:00 44
Skipping test run because it is a unit 4 8.0 2024/09/26 19:54:00 70 2024/09/26 22:38:00 79
i386 4 100.0 2024/09/26 19:54:00 70 2024/09/26 22:38:00 79
go32v2 4 100.0 2024/09/26 19:54:00 70 2024/09/26 22:38:00 79
3.3.1 4 100.0 2024/09/26 19:54:00 70 2024/09/26 22:38:00 79

Source:

{ %CPU=i386 }
{ %OPT=-O2  }
{ Old file: tbs0002.pp }
{  tests for the endless bugs in the optimizer          OK 0.9.2 }

unit tb0001;

  interface

  implementation

{$message starting hexstr}
    function hexstr(val : longint;cnt : byte) : string;

      const
         hexval : string[16]=('0123456789ABCDEF');

      var
         s : string;
         l2,i : integer;
         l1 : longInt;

      begin
         s[0]:=char(cnt);
         l1:=longint($f) shl (4*(cnt-1));
         for i:=1 to cnt do
           begin
              l2:=(val and l1) shr (4*(cnt-i));
              l1:=l1 shr 4;
              s[i]:=hexval[l2+1];
           end;
         hexstr:=s;
      end;

{$message starting dump_stack}

    procedure dump_stack(bp : longint);

{$message starting get_next_frame}

      function get_next_frame(bp : longint) : longint;

        begin
           asm
              movl bp,%eax
              movl (%eax),%eax
              movl %eax,__RESULT
           end ['EAX'];
        end;

      procedure dump_frame(addr : longint);

        begin
           { to be used by symify }
           writeln('  0x',HexStr(addr,8));
        end;

{$message starting get_addr}

      function get_addr(BP : longint) : longint;

        begin
           asm
              movl BP,%eax
              movl 4(%eax),%eax
              movl %eax,__RESULT
           end ['EAX'];
        end;

{$message starting main}

      var
         i,prevbp : longint;

      begin
         prevbp:=bp-1;
         i:=0;
         while bp > prevbp do
           begin
              dump_frame(get_addr(bp));
              i:=i+1;
              if i>max_frame_dump then exit;
              prevbp:=bp;
              bp:=get_next_frame(bp);
           end;
      end;

end.

Link to SVN view of tbs/tb0001.pp source.