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

t_id 1227
t_adddate 2004/01/13
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 0
i386 8 16.0 2024/05/21 01:52:00 47 2024/05/21 05:41:00 0
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 0
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 0
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 0
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 0
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 0 2024/05/21 05:42:00 0
3.3.1 29 58.0 2024/05/21 01:40:00 15 2024/05/21 05:43:00 0
3.2.3 21 42.0 2024/05/21 01:52:00 47 2024/05/21 05:46:00 0

Source:

{$q+}
{$mode objfpc}
uses
  sysutils;


type
   tqwordrec = packed record
{$ifndef ENDIAN_BIG}
      low,high : dword;
{$else}
      high, low : dword;
{$endif}
   end;

procedure assignqword(h,l : dword;var q : qword);

  begin
     tqwordrec(q).high:=h;
     tqwordrec(q).low:=l;
  end;

procedure testmulqword;
var
  q1, q2, q3, q4: qword;
  c: cardinal;
  loops: longint;
begin
  assignqword(0,$1000,q1);
  assignqword(0,$7fff,q2);
  c := $1000 * $7fff;
  q4 := c;
  loops := 0;
  try
    repeat
      q3 := q1 * q2;
      if q3 <> q4 then
        begin
          writeln('qword multiplication of shift error');
          halt(1);
        end;
      inc(loops);
      if (loops >= 39) then
        begin
          writeln('qword multiplication overflow detection failed');
          halt(1);
        end;
      q1 := q1 shl 1;
      q4 := q4 shl 1;
      writeln(loops,': ',q3);
    until false;
  except
    on eintoverflow do
      begin
        if loops < 38 then
          begin
            writeln('false qword multiplication overflow detected');
            halt(1);
          end;
      end;
  end;
end;

begin
  testmulqword;
end.

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