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

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

Detailed test run results:

Record count: 50

Total = 50

OK=5 Percentage= 10.00

Skipped=45 Percentage= 90.00

Result type Cat. Count Percentage First date Last Date
Successfully run 5 10.0 2024/10/19 08:55:00 60 2024/10/19 11:13:00 63
i386 5 100.0 2024/10/19 08:55:00 60 2024/10/19 11:13:00 63
linux 2 40.0 2024/10/19 09:40:00 209 2024/10/19 10:08:00 202
go32v2 3 60.0 2024/10/19 08:55:00 60 2024/10/19 11:13:00 63
3.3.1 5 100.0 2024/10/19 08:55:00 60 2024/10/19 11:13:00 63
Skipping test because for other cpu 45 90.0 2024/10/19 07:29:00 50 2024/10/19 13:32:00 26
m68k 3 6.7 2024/10/19 07:29:00 50 2024/10/19 10:22:00 40
sparc 3 6.7 2024/10/19 09:01:00 54 2024/10/19 11:16:00 40
powerpc 6 13.3 2024/10/19 08:35:00 146 2024/10/19 13:26:00 65
arm 1 2.2 2024/10/19 10:03:00 32 2024/10/19 10:03:00 32
x86_64 11 24.4 2024/10/19 08:27:00 30 2024/10/19 13:32:00 26
powerpc64 7 15.6 2024/10/19 08:43:00 65 2024/10/19 11:23:00 69
mips 2 4.4 2024/10/19 09:54:00 35 2024/10/19 10:28:00 38
mipsel 2 4.4 2024/10/19 09:59:00 38 2024/10/19 10:35:00 142
aarch64 5 11.1 2024/10/19 08:33:00 23 2024/10/19 09:57:00 26
sparc64 3 6.7 2024/10/19 08:33:00 120 2024/10/19 10:46:00 141
loongarch64 2 4.4 2024/10/19 09:45:00 25 2024/10/19 10:17:00 30
linux 33 73.3 2024/10/19 07:29:00 50 2024/10/19 11:38:00 25
solaris 6 13.3 2024/10/19 13:22:00 24 2024/10/19 13:32:00 26
aix 6 13.3 2024/10/19 09:08:00 50 2024/10/19 13:26:00 65
3.3.1 24 53.3 2024/10/19 08:27:00 30 2024/10/19 13:26:00 65
3.2.3 21 46.7 2024/10/19 07:29:00 50 2024/10/19 13:32:00 26

Source:

{ %CPU=i386 }
{ Old file: tbs0309.pp }
{ problem with ATT assembler written by bin writer     OK 0.99.14 (PFV) }

{ This code was first written by Florian
  to test the GDB output for FPU
  he thought first that FPU output was wrong
  but in fact it is a bug in FPC :( }
program bug0309;

var
   a,b : double;
   _as,bs : single;
   al,bl : extended;
   aw,bw : integer;
   ai,bi : longint;
   ac : comp;
begin
{$ifdef CPU86}
{$asmmode att}
   asm
      fninit;
   end;
   a:=1;
   b:=2;
   asm
      movl  $1,%eax
      fldl  a
      fldl  b
      faddp %st,%st(1)
      fstpl a
   end;
   { the above generates wrong code in binary writer
     fldl is replaced by flds !!
     if using -alt option to force assembler output
     all works correctly PM }
   writeln('a = ',a,' should be 3');
   if a<>3.0 then
     Halt(1);
   a:=1.0;
   a:=a+b;
   writeln('a = ',a,' should be 3');
   _as:=0;
   al:=0;
   asm
     fldl a
     fsts _as
     fstpt al
   end;
   if (_as<>3.0) or (al<>3.0) then
     Halt(1);
   ai:=5;
   bi:=5;
   asm
     fildl ai
     fstpl a
   end;
   if a<>5.0 then
     Halt(1);

   ac:=5;
   asm
     fildl ai
     fstpl a
   end;
   if a<>5.0 then
     Halt(1);
   aw:=-4;
   bw:=45;
   asm
     fildw aw
     fstpl a
   end;
   if a<>-4.0 then
     Halt(1);
   ac:=345;
   asm
     fildq ac
     fstpl a
   end;
   if a<>345.0 then
     Halt(1);

{$endif CPU86}
end.

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