Test suite results for test file test/tfpu1.pp

Test run data :

Run ID:
Operating system: linux
Processor: powerpc
Version: 3.2.3
Fails/OK/Total: 44/7941/7985
Version: 3.2.3
Full version: 3.2.3-1374-g849fbd722c-unpushed
Comment: -O1 -Xd -Fl/usr/lib32 -Fd -Fl/usr/lib/gcc/powerpc64-linux-gnu/13/32 -Fd
Machine: gcc203
Category: 1
SVN revisions: fdf93c5b29:849fbd722c:ae0fe8a6a0:d1c29e6cb9
Submitter: pierre
Date: 2024/04/19 11:03:00 <> 2024/04/10
Previous run: 933760
Next run: 936192

Hide skipped tests

Hide successful tests

Test file "test/tfpu1.pp" information:

t_id 38
t_cpu I386
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

tr_idruntr_oktr_skiptr_result
443643933934965FalseTrueSkipping test because for other cpu

Record count: 1

No log of 934965.

Source:

{ %CPU=I386 }
program test_fp_instructions;


  function test : extended;

  var
    x,y : integer;
    statusword,controlword : word;
    z,t : longint;
    a,b,c : comp;
    begin
       x:=5;
       c:=5;
       t:=5;
       z:=4;
       a:=20;
       { test all FPU instructions using 's' and 'l' suffix
         for word and dword size PM }
{$asmmode att}
       asm
         fildl z
         fiadds x
         fistpq b
         fildl z
         ficoms x
         fistpq b
         fildl z
         ficomps x
         fildl z
         fidivs x
         fistpq b
         fildl z
         fidivrs x
         fistpq b
         fildl z
         fisubs x
         fistpq b
         fildl z
         fisubrs x
         fistpq b
         fildl z
         fimuls x
         fistpq b
       end;
       if a<>b then
         begin
           Writeln('Error in FPU att syntax code generation');
           Halt(1);
         end;
       asm
         fildl z
         fiaddl t
         fistpq b
         fildl z
         ficoml t
         fistpq b
         fildl z
         ficompl t
         fildl z
         fidivl t
         fistpq b
         fildl z
         fidivrl t
         fistpq b
         fildl z
         fisubl t
         fistpq b
         fildl z
         fisubrl t
         fistpq b
         fildl z
         fimull t
         fistpq b
       end;
       if a<>b then
         begin
           Writeln('Error in FPU att syntax code generation');
           Halt(1);
         end;
       { test CW and SW instructions }
       { FSTSW FNSTSW
         FLDCW FSTCW FNSTCW }
       asm
         fstsw statusword
         fstsww statusword
         fnstsw statusword
         fnstsww statusword
         fstcw controlword
         fstcww controlword
         fnstcw controlword
         fnstcww controlword
         fldcw controlword
         fldcww controlword
       end;
{$asmmode intel}
       asm
         fild dword ptr z
         fimul dword ptr t
         fistp qword ptr b
         fild dword ptr z
         fimul word ptr x
         fistp qword ptr b
       end;
       if a<>b then
         begin
           Writeln('Error in FPU code generation');
           Halt(1);
         end;
       { test CW and SW instructions }
       asm
         fstsw word ptr [statusword]
         fnstsw word ptr [statusword]
         fstcw word ptr [controlword]
         fnstcw word ptr[controlword]
         fldcw word ptr [controlword]
       end;
       test:=b;
    end;

var
  z : extended;

begin
  z:=test;
end.

Link to SVN view of test/tfpu1.pp source.