Test suite results for test file webtbs/tw1327.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 "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:

Record count: 50

Total = 50

OK=4 Percentage= 8.00

Skipped=46 Percentage= 92.00

Result type Cat. Count Percentage First date Last Date
Successfully run 4 8.0 2024/05/08 06:01:00 28 2024/05/08 08:54:00 78
i386 4 100.0 2024/05/08 06:01:00 28 2024/05/08 08:54:00 78
win32 3 75.0 2024/05/08 06:01:00 28 2024/05/08 08:47:00 26
go32v2 1 25.0 2024/05/08 08:54:00 78 2024/05/08 08:54:00 78
3.3.1 1 25.0 2024/05/08 08:54:00 78 2024/05/08 08:54:00 78
3.2.3 3 75.0 2024/05/08 06:01:00 28 2024/05/08 08:47:00 26
Skipping test because for other cpu 46 92.0 2024/05/08 04:00:00 29 2024/05/08 10:32:00 27
m68k 1 2.2 2024/05/08 08:32:00 54 2024/05/08 08:32:00 54
sparc 2 4.3 2024/05/08 07:48:00 57 2024/05/08 09:37:00 69
powerpc 3 6.5 2024/05/08 08:32:00 63 2024/05/08 08:55:00 62
arm 2 4.3 2024/05/08 08:11:00 34 2024/05/08 10:23:00 59
x86_64 9 19.6 2024/05/08 04:00:00 29 2024/05/08 10:32:00 27
powerpc64 18 39.1 2024/05/08 08:59:00 57 2024/05/08 10:21:00 72
mips 1 2.2 2024/05/08 08:39:00 43 2024/05/08 08:39:00 43
mipsel 1 2.2 2024/05/08 08:47:00 41 2024/05/08 08:47:00 41
aarch64 6 13.0 2024/05/08 08:56:00 37 2024/05/08 10:21:00 38
sparc64 1 2.2 2024/05/08 10:00:00 183 2024/05/08 10:00:00 183
riscv64 1 2.2 2024/05/08 09:30:00 32 2024/05/08 09:30:00 32
loongarch64 1 2.2 2024/05/08 08:26:00 36 2024/05/08 08:26:00 36
linux 41 89.1 2024/05/08 04:00:00 29 2024/05/08 10:32:00 27
solaris 1 2.2 2024/05/08 07:48:00 57 2024/05/08 07:48:00 57
aix 4 8.7 2024/05/08 08:32:00 63 2024/05/08 10:16:00 82
3.3.1 13 28.3 2024/05/08 04:00:00 29 2024/05/08 10:00:00 183
3.2.3 33 71.7 2024/05/08 08:32:00 63 2024/05/08 10:32:00 27

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.