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

t_id 405
t_cpu i386
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0
t_opts -Ratt

Detailed test run results:

Record count: 50

Total = 50

OK=10 Percentage= 20.00

Skipped=40 Percentage= 80.00

Result type Cat. Count Percentage First date Last Date
Successfully run 10 20.0 2024/05/08 13:27:00 22 2024/05/08 19:48:00 175
i386 10 100.0 2024/05/08 13:27:00 22 2024/05/08 19:48:00 175
linux 2 20.0 2024/05/08 19:08:00 176 2024/05/08 19:48:00 175
win32 8 80.0 2024/05/08 13:27:00 22 2024/05/08 19:00:00 22
3.3.1 8 80.0 2024/05/08 13:27:00 22 2024/05/08 19:00:00 22
3.2.3 2 20.0 2024/05/08 19:08:00 176 2024/05/08 19:48:00 175
Skipping test because for other cpu 40 80.0 2024/05/08 13:17:00 68 2024/05/08 20:25:00 69
m68k 2 5.0 2024/05/08 19:15:00 190 2024/05/08 19:55:00 190
sparc 3 7.5 2024/05/08 13:17:00 68 2024/05/08 20:01:00 79
powerpc 2 5.0 2024/05/08 19:37:00 185 2024/05/08 20:18:00 184
arm 3 7.5 2024/05/08 19:02:00 59 2024/05/08 20:25:00 69
x86_64 5 12.5 2024/05/08 13:35:00 32 2024/05/08 20:24:00 52
powerpc64 3 7.5 2024/05/08 13:33:00 60 2024/05/08 19:51:00 71
mips 3 7.5 2024/05/08 16:39:00 49 2024/05/08 20:03:00 240
mipsel 2 5.0 2024/05/08 19:30:00 229 2024/05/08 20:10:00 148
aarch64 14 35.0 2024/05/08 16:11:00 32 2024/05/08 19:34:00 43
sparc64 3 7.5 2024/05/08 13:32:00 159 2024/05/08 20:18:00 148
linux 26 65.0 2024/05/08 13:17:00 68 2024/05/08 20:25:00 69
darwin 12 30.0 2024/05/08 16:11:00 32 2024/05/08 17:40:00 56
win64 2 5.0 2024/05/08 19:43:00 23 2024/05/08 20:10:00 23
3.3.1 4 10.0 2024/05/08 13:17:00 68 2024/05/08 16:39:00 49
3.2.3 36 90.0 2024/05/08 13:33:00 60 2024/05/08 20:25:00 69

Source:

{ %CPU=i386 }
{ %OPT= -Ratt }

{ Old file: tbs0201.pp }
{ problem with record var-parameters and assembler      OK 0.99.11 (PFV) }

program bug0201;

type rec = record
         a : DWord;
         b : Word;
     end;

{ this is really for tests but
  this should be coded with const r1 and r2 !! }

function x(r1 : rec; r2 : rec; var r3 : rec) : integer; assembler;
asm
   movl r3, %edi
   movl r1, %ebx
   movl r2, %ecx
   movl rec.a(%ebx), %eax
   addl rec.a(%ecx), %eax
   movl %eax, rec.a(%edi)

   movw rec.b(%ebx), %ax
   addw rec.b(%ecx), %ax
   movw %ax, rec.b(%edi)
   movw $1,%ax
end;

var r1, r2, r3 : rec;

begin
     r1.a := 100; r1.b := 200;
     r2.a := 300; r2.b := 400;
     x(r1, r2, r3);
     Writeln(r3.a, ' ', r3.b);
     if (r3.a<>400) or (r3.b<>600) then
       begin
          Writeln('Error in assembler code');
          Halt(1);
       end;
end.

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