Test suite results for test file test/tfpu2.pp

Test run data :

Run ID:
Operating system: go32v2
Processor: i386
Version: 3.3.1
Fails/OK/Total: 68/9357/9425
Version: 3.3.1
Full version: 3.3.1-15680-g6f2e6c18f5-unpushed
Comment: -O- -Fl/home/muller/sys-root/djgpp/lib -Fl/home/muller/sys-root/djgpp/lib/gcc/djgpp/6.10 -Fd
Machine: cfarm26
Category: 1
SVN revisions: 9b1861a104:d6cf3c98d0:e657d6a07d:6f2e6c18f5
Submitter: pierre
Date: 2024/05/08 06:01:00
Previous run: 947233
Next run: 948702

Hide skipped tests

Hide successful tests

Test file "test/tfpu2.pp" information:

t_id 39
t_version 1.1
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

tr_idruntr_oktr_skiptr_result
524344500948001FalseTrueSkipping test because for other target

Record count: 1

No log of 948001.

Source:

{ %version=1.1 }

{$ifdef fpc}{$mode objfpc}{$endif}
program test_fpu_excpetions;

uses
  SysUtils;

  function mysqrt(x : real) : real;

    begin
      try
        mysqrt:=sqrt(x);
      except
        on e : exception do
          mysqrt:=0;
      end;
    end;

  var
    x, y,z : real;

begin
  x:=6.5;
  y:=5.76;
  z:=3.1;
  Writeln('Testing mysqrt (x) = sqrt(x) if x >= 0');
  Writeln('                   = 0       if x <  0');
  Writeln(' 6.5+5.76*mysqrt(3.1) = ',x+y*mysqrt(z):0:6);
  Writeln(' 6.5+5.76*mysqrt(-3.1) = ',x+y*mysqrt(-z):0:6);
end.

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