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=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 07:29:00 50 2024/10/19 13:36:00 24
m68k 3 6.3 2024/10/19 07:29:00 50 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 8 16.7 2024/10/19 08:35:00 146 2024/10/19 13:26:00 65
arm 2 4.2 2024/10/19 09:36:00 32 2024/10/19 10:03:00 32
x86_64 10 20.8 2024/10/19 08:40:00 45 2024/10/19 13:36:00 24
powerpc64 6 12.5 2024/10/19 10:06:00 62 2024/10/19 10:59:00 68
mips 1 2.1 2024/10/19 08:18:00 121 2024/10/19 08:18:00 121
mipsel 2 4.2 2024/10/19 08:27:00 188 2024/10/19 09:59:00 38
aarch64 4 8.3 2024/10/19 08:15:00 27 2024/10/19 09:57:00 26
sparc64 4 8.3 2024/10/19 08:23:00 137 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 34 70.8 2024/10/19 07:29:00 50 2024/10/19 11:38:00 25
solaris 6 12.5 2024/10/19 13:26:00 25 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 26 54.2 2024/10/19 08:05:00 45 2024/10/19 13:26:00 65
3.2.3 22 45.8 2024/10/19 07:29:00 50 2024/10/19 13:36:00 24

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.