Test suite results for test file test/tfpu2.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 "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:

Record count: 50

Total = 50

OK=41 Percentage= 82.00

Skipped=2 Percentage= 4.00

Result type Cat. Count Percentage First date Last Date
Failed to run 7 14.0 2024/05/21 05:08:00 158 2024/05/21 08:13:00 0
sparc 3 42.9 2024/05/21 06:55:00 81 2024/05/21 07:52:00 74
sparc64 4 57.1 2024/05/21 05:08:00 158 2024/05/21 08:13:00 0
linux 7 100.0 2024/05/21 05:08:00 158 2024/05/21 08:13:00 0
3.3.1 2 28.6 2024/05/21 05:08:00 158 2024/05/21 07:52:00 74
3.2.3 5 71.4 2024/05/21 06:55:00 81 2024/05/21 08:13:00 0
Successfully run 41 82.0 2024/05/21 05:53:00 132 2024/05/21 08:15:00 0
i386 2 4.9 2024/05/21 06:56:00 236 2024/05/21 07:25:00 42
m68k 3 7.3 2024/05/21 06:59:00 58 2024/05/21 07:39:00 58
powerpc 7 17.1 2024/05/21 06:16:00 188 2024/05/21 07:59:00 246
arm 1 2.4 2024/05/21 07:18:00 40 2024/05/21 07:18:00 40
x86_64 3 7.3 2024/05/21 06:12:00 30 2024/05/21 08:14:00 0
powerpc64 9 22.0 2024/05/21 05:53:00 132 2024/05/21 08:11:00 0
mips 3 7.3 2024/05/21 07:08:00 154 2024/05/21 07:46:00 54
mipsel 4 9.8 2024/05/21 06:07:00 151 2024/05/21 07:54:00 52
aarch64 6 14.6 2024/05/21 06:53:00 38 2024/05/21 08:15:00 0
riscv64 1 2.4 2024/05/21 07:46:00 31 2024/05/21 07:46:00 31
loongarch64 2 4.9 2024/05/21 07:01:00 34 2024/05/21 07:33:00 38
linux 36 87.8 2024/05/21 05:53:00 132 2024/05/21 08:15:00 0
solaris 2 4.9 2024/05/21 06:12:00 30 2024/05/21 06:21:00 29
darwin 3 7.3 2024/05/21 06:53:00 38 2024/05/21 07:13:00 47
3.3.1 27 65.9 2024/05/21 05:53:00 132 2024/05/21 08:14:00 0
3.2.3 14 34.1 2024/05/21 06:07:00 151 2024/05/21 08:15:00 0
Skipping test because for other target 2 4.0 2024/05/21 06:26:00 59 2024/05/21 07:07:00 60
i386 2 100.0 2024/05/21 06:26:00 59 2024/05/21 07:07:00 60
go32v2 2 100.0 2024/05/21 06:26:00 59 2024/05/21 07:07:00 60
3.2.3 2 100.0 2024/05/21 06:26:00 59 2024/05/21 07:07:00 60

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.