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=2 Percentage= 4.00

Skipped=48 Percentage= 96.00

Result type Cat. Count Percentage First date Last Date
Successfully run 2 4.0 2024/10/19 09:40:00 209 2024/10/19 10:08:00 202
i386 2 100.0 2024/10/19 09:40:00 209 2024/10/19 10:08:00 202
linux 2 100.0 2024/10/19 09:40:00 209 2024/10/19 10:08:00 202
3.3.1 2 100.0 2024/10/19 09:40:00 209 2024/10/19 10:08:00 202
Skipping test because for other cpu 48 96.0 2024/10/19 08:05:00 45 2024/10/19 13:36:00 24
m68k 2 4.2 2024/10/19 09:50:00 39 2024/10/19 10:22:00 40
sparc 4 8.3 2024/10/19 08:05:00 45 2024/10/19 11:16:00 40
powerpc 5 10.4 2024/10/19 08:40:00 51 2024/10/19 13:26:00 65
arm 1 2.1 2024/10/19 10:03:00 32 2024/10/19 10:03:00 32
x86_64 12 25.0 2024/10/19 08:27:00 30 2024/10/19 13:36:00 24
powerpc64 9 18.8 2024/10/19 08:43:00 65 2024/10/19 11:23:00 69
mips 2 4.2 2024/10/19 09:54:00 35 2024/10/19 10:28:00 38
mipsel 2 4.2 2024/10/19 09:59:00 38 2024/10/19 10:35:00 142
aarch64 4 8.3 2024/10/19 08:15:00 27 2024/10/19 09:57:00 26
sparc64 3 6.3 2024/10/19 09:25:00 118 2024/10/19 11:33:00 117
riscv64 2 4.2 2024/10/19 10:25:00 33 2024/10/19 11:10:00 26
loongarch64 2 4.2 2024/10/19 09:45:00 25 2024/10/19 10:17:00 30
linux 32 66.7 2024/10/19 08:05:00 45 2024/10/19 11:38:00 25
solaris 8 16.7 2024/10/19 13:22:00 24 2024/10/19 13:36:00 24
aix 8 16.7 2024/10/19 08:40:00 51 2024/10/19 13:26:00 65
3.3.1 27 56.3 2024/10/19 08:05:00 45 2024/10/19 13:26:00 65
3.2.3 21 43.8 2024/10/19 08:15:00 27 2024/10/19 13:36:00 24

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.