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

t_id 842
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=50 Percentage= 100.00

Result type Cat. Count Percentage First date Last Date
Successfully run 50 100.0 2024/05/21 01:40:00 15 2024/05/21 05:46:00 43
i386 8 16.0 2024/05/21 01:52:00 47 2024/05/21 05:41:00 55
m68k 1 2.0 2024/05/21 04:00:00 53 2024/05/21 04:00:00 53
sparc 1 2.0 2024/05/21 04:50:00 56 2024/05/21 04:50:00 56
powerpc 1 2.0 2024/05/21 04:15:00 238 2024/05/21 04:15:00 238
x86_64 19 38.0 2024/05/21 01:40:00 15 2024/05/21 05:38:00 35
powerpc64 13 26.0 2024/05/21 04:20:00 53 2024/05/21 05:43:00 113
mipsel 1 2.0 2024/05/21 04:11:00 185 2024/05/21 04:11:00 185
aarch64 5 10.0 2024/05/21 03:47:00 31 2024/05/21 05:46:00 43
riscv64 1 2.0 2024/05/21 04:44:00 30 2024/05/21 04:44:00 30
linux 42 84.0 2024/05/21 01:40:00 15 2024/05/21 05:46:00 43
win32 1 2.0 2024/05/21 04:53:00 28 2024/05/21 04:53:00 28
go32v2 3 6.0 2024/05/21 04:13:00 54 2024/05/21 05:41:00 55
solaris 3 6.0 2024/05/21 03:16:00 19 2024/05/21 03:35:00 27
darwin 1 2.0 2024/05/21 05:42:00 24 2024/05/21 05:42:00 24
3.3.1 29 58.0 2024/05/21 01:40:00 15 2024/05/21 05:43:00 113
3.2.3 21 42.0 2024/05/21 01:52:00 47 2024/05/21 05:46:00 43

Source:

{ Source provided for Free Pascal Bug Report 1720 }
{ Submitted by "Jesse Towner" on  2001-12-09 }
{ e-mail: jesse@gdnmail.net }
var a, b, c : single;
begin
    (* ... other floating point code goes here *)

    a := 5.6;
    b := 3.4;
    b:= b + sqrt(b)- ln(a);

    c := a - (b-(b-1));

    if abs(c-(a-1))>0.01 then
      begin
        Writeln('Error in floating point code');
        halt(1);
      end;
    (* sometimes, depending on the previous code,
       the code generator will chose to swap the
       operands. however, it just calls the
       reverse version of the instruction without
       swapping the operands. this results in
       giving a value of (b-a) or -2.2 for c. the
       same goes for floating point division. *)
end.

Link to SVN view of webtbs/tw1720.pp source.