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=6 Percentage= 12.00

Skipped=44 Percentage= 88.00

Result type Cat. Count Percentage First date Last Date
Successfully run 6 12.0 2024/05/08 19:00:00 22 2024/05/08 23:30:00 34
i386 6 100.0 2024/05/08 19:00:00 22 2024/05/08 23:30:00 34
linux 5 83.3 2024/05/08 19:08:00 176 2024/05/08 23:30:00 34
win32 1 16.7 2024/05/08 19:00:00 22 2024/05/08 19:00:00 22
3.3.1 1 16.7 2024/05/08 19:00:00 22 2024/05/08 19:00:00 22
3.2.3 5 83.3 2024/05/08 19:08:00 176 2024/05/08 23:30:00 34
Skipping test because for other cpu 44 88.0 2024/05/08 18:55:00 44 2024/05/08 23:32:00 40
m68k 3 6.8 2024/05/08 19:15:00 190 2024/05/08 20:43:00 63
sparc 7 15.9 2024/05/08 20:01:00 79 2024/05/08 23:32:00 40
powerpc 3 6.8 2024/05/08 19:37:00 185 2024/05/08 21:11:00 188
arm 3 6.8 2024/05/08 19:02:00 59 2024/05/08 20:25:00 69
x86_64 10 22.7 2024/05/08 19:43:00 23 2024/05/08 23:14:00 21
powerpc64 6 13.6 2024/05/08 19:44:00 213 2024/05/08 21:28:00 73
mips 3 6.8 2024/05/08 19:23:00 240 2024/05/08 20:52:00 160
mipsel 3 6.8 2024/05/08 19:30:00 229 2024/05/08 21:02:00 151
aarch64 3 6.8 2024/05/08 18:55:00 44 2024/05/08 20:16:00 46
sparc64 3 6.8 2024/05/08 20:18:00 148 2024/05/08 22:05:00 151
linux 33 75.0 2024/05/08 18:55:00 44 2024/05/08 22:13:00 104
solaris 4 9.1 2024/05/08 23:24:00 38 2024/05/08 23:32:00 40
win64 7 15.9 2024/05/08 19:43:00 23 2024/05/08 23:14:00 21
3.3.1 2 4.5 2024/05/08 23:14:00 21 2024/05/08 23:32:00 40
3.2.3 42 95.5 2024/05/08 18:55:00 44 2024/05/08 23:30:00 37

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.