summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/tasm6.pp
blob: cee34b146a39bc0bb81b2a6d3e3be6df2d2eb93f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ %CPU=x86_64 }
{ %fail }

// push and pop with 32-bit operands aren't encodable in x86_64
{$asmmode att}
procedure test; assembler; nostackframe;
asm
     push   %eax
     pop    %r8d
     pushl  (%rax)
     popl   (%r8)
end;

begin
end.