fpc/tests/test/tasm4.pp
sergei d908fb42f7 x86 assembler fixes:
* 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 -
2011-05-16 20:18:03 +00:00

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.