Test suite results for test file webtbs/tw1327.pp

Test run data :

Run ID:
Operating system: solaris
Processor: i386
Version: 3.2.3
Fails/OK/Total: 33/8251/8284
Version: 3.2.3
Full version: 3.2.3-1373-gae0fe8a
Comment: -Agas -Cg -Fd
Machine: unstable10x
Category: 1
SVN revisions: fdf93c5:c17a0e2:ae0fe8a:d1c29e6
Submitter: pierre
Date: 2024/04/27 17:05:00
Previous run: 928817
Next run: 941248

Hide skipped tests

Hide successful tests

Test file "webtbs/tw1327.pp" information:

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

Detailed test run results:

tr_idruntr_oktr_skiptr_result
477989761940510TrueFalseSuccessfully run

Record count: 1

No log of 940510.

Source:

{ %CPU=i386 }
{ Source provided for Free Pascal Bug Report 1327 }
{ Submitted by "Fernando Oscar Schmitt" on  2001-01-08 }
{ e-mail: pulp@cpovo.net }
{NOT to execute! ONLY for disassemble!}

{$asmmode intel}

procedure NotToExecute;
begin
  asm
    lea eax,[ebx+1*ecx]
    mov ebx,[ecx+eax*2]
    add ecx,[4*eax+ebx]
    sub edx,[esi*8+edi]

    adc eax,[ebx+1*ecx+100000]
    sbb ebx,[ecx+eax*2+200000]
    movzx ecx,byte ptr [4*eax+ebx+400000]
    movsx edx,word ptr [esi*8+edi+800000]

    and [2*ecx],eax
    xor [edx*4],ebx

    or [2*ecx+20],eax
    not dword ptr [edx*4+40]
  end;
end;

const
  has_error : boolean = false;

procedure test;
var
  x,y : array[0..5] of longint;
  i : longint;
  begin
    for i:=0 to 5 do
      begin
        x[i]:=6*i;
        y[i]:=5*i;
      end;
    asm
      lea edi,x
      lea esi,y
      mov ecx,0
    @LLloop:
      mov ebx,[edi+4*ecx]
      sub ebx,[4*ecx+esi]
      mov [edi+4*ecx],ebx
      inc ecx
      cmp ecx,6
      jne  @LLloop
    end;
    for i:=0 to 5 do
      if x[i]<>i then
        has_error:=true;
  end;

begin
  test;
  if has_error then
    begin
      Writeln('bug 1327 is not fixed');
      Halt(1);
    end;
end.

Link to SVN view of webtbs/tw1327.pp source.