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=43 Percentage= 86.00

Result type Cat. Count Percentage First date Last Date
Failed to run 7 14.0 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
wasm32 7 100.0 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
wasi 7 100.0 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
3.3.1 7 100.0 2024/09/26 19:31:00 339 2024/09/26 22:50:00 299
Successfully run 43 86.0 2024/09/26 18:42:00 90 2024/09/26 23:02:00 44
i386 4 9.3 2024/09/26 19:54:00 70 2024/09/26 22:38:00 79
powerpc 14 32.6 2024/09/26 19:41:00 35 2024/09/26 23:02:00 44
powerpc64 17 39.5 2024/09/26 18:42:00 90 2024/09/26 22:29:00 103
riscv64 8 18.6 2024/09/26 19:14:00 123 2024/09/26 19:59:00 123
linux 39 90.7 2024/09/26 18:42:00 90 2024/09/26 23:02:00 44
go32v2 4 9.3 2024/09/26 19:54:00 70 2024/09/26 22:38:00 79
3.3.1 27 62.8 2024/09/26 18:42:00 90 2024/09/26 22:38:00 79
3.2.3 16 37.2 2024/09/26 21:17:00 71 2024/09/26 23:02:00 44

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.