mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 11:38:01 +02:00

* Factored repeating REX operations into a separate function. * Fixed instruction matching bug which was preventing compilation of 3-operand SIMD instructions with RIP-relative operand + test. * Do not adjust offset of RIP-relative reference if it is a literal number, this was causing 0x123(%rip) to assemble as 0x122(%rip) in 3-operand instructions. Now tasm2.pp is the same with and without -Aas. Also fixed the expected result, improved verbosity of diagnostic and removed %norun, so it is actually executed. + Disallow high-byte registers in instructions requiring REX + test. git-svn-id: trunk@17478 -
13 lines
210 B
ObjectPascal
13 lines
210 B
ObjectPascal
{ %CPU=x86_64 }
|
|
{ %fail }
|
|
|
|
// AH/BH/CH/DH and x86_64 specific registers cannot be used in a single instruction
|
|
{$asmmode att}
|
|
procedure test; assembler; nostackframe;
|
|
asm
|
|
adcb %ah, (%r8)
|
|
end;
|
|
|
|
begin
|
|
end.
|