1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-12-23 06:28:13 +00:00

Handle Ignore ER bit in instruction attributes.

This commit is contained in:
Andrei Vlad LUTAS 2020-07-23 18:05:19 +03:00
parent 7ddf7e448a
commit 6c248cc4c1

View File

@ -3546,7 +3546,7 @@ NdGetVectorLength(
) )
{ {
if (Instrux->HasEvex && Instrux->Exs.bm && (Instrux->ModRm.mod == 3) && if (Instrux->HasEvex && Instrux->Exs.bm && (Instrux->ModRm.mod == 3) &&
(ND_ER_SUPPORT(Instrux) || ND_SAE_SUPPORT(Instrux))) (ND_ER_SUPPORT(Instrux) || ND_SAE_SUPPORT(Instrux) || !!(Instrux->Attributes & ND_FLAG_IER)))
{ {
// Embedded rounding present, force the vector length to 512. // Embedded rounding present, force the vector length to 512.
if ((Instrux->TupleType == ND_TUPLE_T1S) || (Instrux->TupleType == ND_TUPLE_T1F)) if ((Instrux->TupleType == ND_TUPLE_T1S) || (Instrux->TupleType == ND_TUPLE_T1F))