* x86 assembler reader: fixed bug in Tx86Instruction.AddReferenceSizes which was causing "Unable to determine operand size" error on instructions like "cmpss $0x10,(%rax),%xmm7" (3-operand instructions with reference being the source operand).

git-svn-id: trunk@17370 -
This commit is contained in:
sergei 2011-04-25 21:35:36 +00:00
parent 5c08dd06a3
commit 1bcc41c8c6

View File

@ -296,11 +296,13 @@ begin
OPR_LOCAL,
OPR_REFERENCE :
begin
if i=2 then
operand2:=1
{ for 3-operand opcodes, operand #1 (in ATT order) is always an immediate,
don't consider it. }
if i=ops then
operand2:=i-1
else
operand2:=2;
if operand2<ops then
operand2:=i+1;
if operand2>0 then
begin
{ Only allow register as operand to take the size from }
if operands[operand2].opr.typ=OPR_REGISTER then