diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/evex.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/evex.in b/src/shared/evex.in index efeec20..837b867 100644 --- a/src/shared/evex.in +++ b/src/shared/evex.in @@ -2842,6 +2842,8 @@ pub(crate) fn read_evex_operands< if mem_oper == OperandSpec::RegMMM { instruction.mem_size = 0; instruction.regs[1].bank = RegisterBank::K; + // only 8 mask registers, `xed` suggests that any invalid bits are masked out??? + instruction.regs[1].num &= 0b111; } else { return Err(DecodeError::InvalidOperand); } |