decode: Expose immediate in RVMR encodings

The AMD64 instructions VPERMIL2PS and VPERMIL2PD (currently not
supported) encode a fifth immediate operand in the lower bits of the
re-purposed immediate. Expose this value in any case so that no
information gets lost during decoding.
This commit is contained in:
Alexis Engelke
2021-09-13 17:38:24 +02:00
parent 7229f13742
commit bf0425f057

View File

@@ -485,6 +485,7 @@ skip_modrm:
if (mode == DECODE_32)
reg &= 0x7f;
operand->reg = reg >> 4;
instr->imm = reg & 0x0f;
}
else if (imm_control != 0)
{