From 5118e35016aedc1de490c3aa49d7ec89cd959b95 Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 27 Aug 2006 18:49:12 +0000 Subject: [PATCH] * another mayewriterex added, fixes #7261 git-svn-id: trunk@4511 - --- compiler/x86/aasmcpu.pas | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/compiler/x86/aasmcpu.pas b/compiler/x86/aasmcpu.pas index b8b1148c33..2ef5cfdd8f 100644 --- a/compiler/x86/aasmcpu.pas +++ b/compiler/x86/aasmcpu.pas @@ -1966,6 +1966,10 @@ implementation * \327 - indicates that this instruction is only valid when the * operand size is the default (instruction to disassembler, * generates no code in the assembler) + * \331 - instruction not valid with REP prefix. Hint for + * disassembler only; for SSE instructions. + * \332 - disassemble a rep (0xF3 byte) prefix as repe not rep. + * \333 - REP prefix (0xF3 byte); for SSE instructions. Not encoded * \335 - removes rex size prefix, i.e. rex.w must be the last opcode } @@ -2242,6 +2246,9 @@ implementation end; 219 : begin +{$ifdef x86_64} + maybewriterex; +{$endif x86_64} bytes[0]:=$f3; objdata.writebytes(bytes,1); end; @@ -2258,7 +2265,11 @@ implementation 217,218 : begin { these are dissambler hints or 32 bit prefixes which - are not needed } + are not needed + It's usefull to write rex :) (FK) } +{$ifdef x86_64} + maybewriterex; +{$endif x86_64} end; 31, 48,49,50 :