external gas assembler: special handling for correct suffix in vfpclass-opcodes

git-svn-id: branches/tg74/avx512-0037785@47865 -
This commit is contained in:
tg74 2020-12-28 05:00:58 +00:00 committed by Michaël Van Canneyt
parent 6d1553984e
commit e98771608e

View File

@ -1521,8 +1521,11 @@ procedure Tx86Instruction.SetInstructionOpsize;
// special handling = use source operand for calculate instructions-opsize
// e.g. vcvtsi2sd, vcvtsi2ss, vcvtusi2sd, vcvtusi2ss,
// vfpclass..
opsize:=tx86operand(operands[1]).opsize;
if (ops > 2) and
(tx86operand(operands[1]).opr.typ = OPR_CONSTANT) then
opsize:=tx86operand(operands[2]).opsize
else opsize:=tx86operand(operands[1]).opsize;
if (MemRefSize in [msiMultipleMinSize128, msiMultipleMinSize256, msiMultipleMinSize512]) and
(not(opsize in [S_XMM, S_YMM, S_ZMM])) then