Test suite results for test file test/tmmx1.pp

Test run data :

Run ID:
Operating system: linux
Processor: loongarch64
Version: 3.3.1
Fails/OK/Total: 38/9170/9208
Version: 3.3.1
Full version: 3.3.1-15584-g2f9ed0576e
Comment: -XR/home/muller/sys-root/loongarch64-linux -Xd -Xr/home/muller/sys-root/loongarch64-linux
Machine: cfarm421
Category: 1
SVN revisions: 2f9ed0576e:8b7dbb81b1:3f8bbd3b00:2f9ed0576e
Submitter: muller
Date: 2024/04/19 11:12:00 <> 2024/04/18
Previous run: 934325
Next run: 935672

Hide skipped tests

Hide successful 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:

tr_idruntr_oktr_skiptr_result
443693511934973FalseTrueSkipping test because for other cpu

Record count: 1

No log of 934973.

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.