Test suite results for test file test/tcg1.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/tcg1.pp" information:

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

Detailed test run results:

Record count: 50

Total = 50

OK=5 Percentage= 10.00

Skipped=45 Percentage= 90.00

Result type Cat. Count Percentage First date Last Date
Successfully run 5 10.0 2024/10/19 09:39:00 55 2024/10/19 11:13:00 63
i386 5 100.0 2024/10/19 09:39:00 55 2024/10/19 11:13:00 63
linux 2 40.0 2024/10/19 09:40:00 209 2024/10/19 10:08:00 202
go32v2 3 60.0 2024/10/19 09:39:00 55 2024/10/19 11:13:00 63
3.3.1 5 100.0 2024/10/19 09:39:00 55 2024/10/19 11:13:00 63
Skipping test because for other cpu 45 90.0 2024/10/19 07:29:00 50 2024/10/19 13:36:00 24
m68k 2 4.4 2024/10/19 07:29:00 50 2024/10/19 09:50:00 39
sparc 4 8.9 2024/10/19 08:05:00 45 2024/10/19 11:16:00 40
powerpc 7 15.6 2024/10/19 08:35:00 146 2024/10/19 13:26:00 65
x86_64 9 20.0 2024/10/19 08:27:00 30 2024/10/19 13:36:00 24
powerpc64 8 17.8 2024/10/19 08:43:00 65 2024/10/19 11:23:00 69
mips 3 6.7 2024/10/19 08:18:00 121 2024/10/19 10:28:00 38
mipsel 1 2.2 2024/10/19 10:35:00 142 2024/10/19 10:35:00 142
aarch64 4 8.9 2024/10/19 08:15:00 27 2024/10/19 09:32:00 28
sparc64 4 8.9 2024/10/19 08:33:00 120 2024/10/19 11:33:00 117
riscv64 2 4.4 2024/10/19 10:25:00 33 2024/10/19 11:10:00 26
loongarch64 1 2.2 2024/10/19 10:17:00 30 2024/10/19 10:17:00 30
linux 31 68.9 2024/10/19 07:29:00 50 2024/10/19 11:38:00 25
solaris 6 13.3 2024/10/19 13:22:00 24 2024/10/19 13:36:00 24
aix 8 17.8 2024/10/19 08:40:00 51 2024/10/19 13:26:00 65
3.3.1 22 48.9 2024/10/19 08:05:00 45 2024/10/19 13:26:00 65
3.2.3 23 51.1 2024/10/19 07:29:00 50 2024/10/19 13:36:00 24

Source:

{ %CPU=i386 }
{$R-}
program test_register_pushing;

var
  before, after : longint;
  wpush,lpush : longint;
const
  haserror : boolean = false;

begin
{$ifdef CPUI386}
{$asmmode att}
  asm
    movl   %esp,before
    pushw  %es
    movl   %esp,after
    popw   %es
  end;
  wpush:=before-after;
  if wpush<>2 then
    begin
      Writeln('Compiler does not push "pushw %es" into 2 bytes');
      haserror:=true;
    end;
  asm
    movl   %esp,before
    pushl  %es
    movl   %esp,after
    popl   %es
  end;
  lpush:=before-after;

  if lpush<>4 then
    begin
      Writeln('Compiler does not push "pushl %es" into 4 bytes');
      haserror:=true;
    end;

  asm
    movl   %esp,before
    pushw  %gs
    movl   %esp,after
    popw   %gs
  end;
  wpush:=before-after;
  if wpush<>2 then
    begin
      Writeln('Compiler does not push "pushw %gs" into 2 bytes');
      haserror:=true;
    end;
  asm
    movl   %esp,before
    pushl  %gs
    movl   %esp,after
    popl   %gs
  end;
  lpush:=before-after;

  if lpush<>4 then
    begin
      Writeln('Compiler does not push "pushl %gs" into 4 bytes');
      haserror:=true;
    end;
{$asmmode intel}
  asm
    mov    before,esp
    push   es
    mov    after,esp
    pop    es
  end;
  Writeln('Intel "push es" uses ',before-after,' bytes');
{$endif CPUI386}
  if haserror then
    Halt(1);
end.

Link to SVN view of test/tcg1.pp source.