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

t_id 61
t_cpu i386
t_adddate 2003/10/03
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=5 Percentage= 10.00

Skipped=43 Percentage= 86.00

Result type Cat. Count Percentage First date Last Date
Failed to compile 2 4.0 2024/05/08 08:10:00 75 2024/05/08 08:54:00 78
i386 2 100.0 2024/05/08 08:10:00 75 2024/05/08 08:54:00 78
go32v2 2 100.0 2024/05/08 08:10:00 75 2024/05/08 08:54:00 78
3.3.1 2 100.0 2024/05/08 08:10:00 75 2024/05/08 08:54:00 78
Successfully run 5 10.0 2024/05/08 06:01:00 28 2024/05/08 08:47:00 26
i386 5 100.0 2024/05/08 06:01:00 28 2024/05/08 08:47:00 26
linux 1 20.0 2024/05/08 08:18:00 43 2024/05/08 08:18:00 43
win32 4 80.0 2024/05/08 06:01:00 28 2024/05/08 08:47:00 26
3.3.1 1 20.0 2024/05/08 08:18:00 43 2024/05/08 08:18:00 43
3.2.3 4 80.0 2024/05/08 06:01:00 28 2024/05/08 08:47:00 26
Skipping test because for other cpu 43 86.0 2024/05/08 04:00:00 29 2024/05/08 10:02:00 64
m68k 1 2.3 2024/05/08 08:32:00 54 2024/05/08 08:32:00 54
sparc 3 7.0 2024/05/08 06:22:00 51 2024/05/08 07:48:00 57
powerpc 4 9.3 2024/05/08 08:09:00 65 2024/05/08 08:55:00 62
arm 1 2.3 2024/05/08 08:11:00 34 2024/05/08 08:11:00 34
x86_64 10 23.3 2024/05/08 04:00:00 29 2024/05/08 09:45:00 27
powerpc64 12 27.9 2024/05/08 08:59:00 57 2024/05/08 10:02:00 64
mips 2 4.7 2024/05/08 08:17:00 51 2024/05/08 08:39:00 43
mipsel 1 2.3 2024/05/08 08:47:00 41 2024/05/08 08:47:00 41
aarch64 6 14.0 2024/05/08 07:02:00 28 2024/05/08 09:57:00 38
sparc64 1 2.3 2024/05/08 10:00:00 183 2024/05/08 10:00:00 183
riscv64 1 2.3 2024/05/08 09:30:00 32 2024/05/08 09:30:00 32
loongarch64 1 2.3 2024/05/08 08:26:00 36 2024/05/08 08:26:00 36
linux 36 83.7 2024/05/08 04:00:00 29 2024/05/08 10:02:00 64
solaris 3 7.0 2024/05/08 06:22:00 51 2024/05/08 07:48:00 57
darwin 1 2.3 2024/05/08 07:02:00 28 2024/05/08 07:02:00 28
aix 3 7.0 2024/05/08 08:09:00 65 2024/05/08 08:55:00 62
3.3.1 17 39.5 2024/05/08 04:00:00 29 2024/05/08 10:00:00 183
3.2.3 26 60.5 2024/05/08 05:25:00 35 2024/05/08 10:02:00 64

Source:

{ %CPU=i386 }
{ this contains currently only a basic test of mmx support }
{ the following instructions are tested:
   PSUBW
   PSUBUSW
   PADDW
   PADDUSW
}
uses
   mmx;

procedure do_error(l : longint);

  begin
     writeln('Error near number ',l);
     halt(1);
  end;

function equal(const v1,v2 : tmmxword) : boolean;

  var
     i : integer;

  begin
     equal:=false;
     for i:=0 to 3 do
       if v1[i]<>v2[i] then
         exit;
     equal:=true;
  end;

procedure testmmxword;

  var t1,t5 : tmmxword;

  const
     c0 : tmmxword = (0,0,0,0);
     c1 : tmmxword = (1,1,1,1);
     c2 : tmmxword = (1234,4321,1111,33333);
     c3 : tmmxword = (1234,4321,2222,11111);
     c4 : tmmxword = (2468,8642,3333,44444);
     c5 : tmmxword = ($ffff,$ffff,$ffff,$ffff);

  begin
     {$mmx+}
     { Intel: paddw }
     t1:=c2+c3;
     if not(equal(t1,c4)) then
       do_error(1000);

     { Intel: psubw }
     t5:=t1-c2;
     if not(equal(t5,c3)) then
       do_error(1001);
     t1:=not(c0);

     { does a not }
     if not(equal(t1,c5)) then
       do_error(1002);

     { test the saturation }
     {$saturation+}
     t1:=c5+c2+c3;
     if not(equal(t1,c5)) then
       do_error(1003);

     t1:=c4-c5-t1;
     if not(equal(t1,c0)) then
       do_error(1004);
     {$saturation-}
  end;

begin
   if not(is_mmx_cpu) then
     begin
        writeln('!!!! Warning: You need a mmx capable CPU to run this test !!!!');
        halt(0);
     end;
   writeln('Testing basic tmmxword support');
   testmmxword;
   writeln('Test succesful');
   writeln;
end.


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