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=11 Percentage= 22.00

Skipped=39 Percentage= 78.00

Result type Cat. Count Percentage First date Last Date
Successfully run 11 22.0 2024/05/08 12:44:00 172 2024/05/08 19:08:00 176
i386 11 100.0 2024/05/08 12:44:00 172 2024/05/08 19:08:00 176
linux 2 18.2 2024/05/08 12:44:00 172 2024/05/08 19:08:00 176
win32 9 81.8 2024/05/08 13:01:00 21 2024/05/08 19:00:00 22
3.3.1 9 81.8 2024/05/08 13:01:00 21 2024/05/08 19:00:00 22
3.2.3 2 18.2 2024/05/08 12:44:00 172 2024/05/08 19:08:00 176
Skipping test because for other cpu 39 78.0 2024/05/08 12:37:00 36 2024/05/08 19:30:00 229
m68k 3 7.7 2024/05/08 12:40:00 244 2024/05/08 19:15:00 190
sparc 2 5.1 2024/05/08 13:17:00 68 2024/05/08 13:43:00 62
powerpc 2 5.1 2024/05/08 12:52:00 243 2024/05/08 13:17:00 181
arm 1 2.6 2024/05/08 19:02:00 59 2024/05/08 19:02:00 59
x86_64 3 7.7 2024/05/08 12:43:00 85 2024/05/08 14:13:00 40
powerpc64 4 10.3 2024/05/08 12:55:00 242 2024/05/08 13:33:00 60
mips 4 10.3 2024/05/08 12:44:00 239 2024/05/08 19:23:00 240
mipsel 3 7.7 2024/05/08 12:48:00 183 2024/05/08 19:30:00 229
aarch64 13 33.3 2024/05/08 16:11:00 32 2024/05/08 18:55:00 44
sparc64 3 7.7 2024/05/08 12:38:00 163 2024/05/08 14:06:00 137
loongarch64 1 2.6 2024/05/08 12:37:00 36 2024/05/08 12:37:00 36
linux 27 69.2 2024/05/08 12:37:00 36 2024/05/08 19:30:00 229
darwin 12 30.8 2024/05/08 16:11:00 32 2024/05/08 17:40:00 56
3.3.1 13 33.3 2024/05/08 12:37:00 36 2024/05/08 16:39:00 49
3.2.3 26 66.7 2024/05/08 12:52:00 58 2024/05/08 19:30:00 229

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.