From d7d84b3be6c929ee9d1b425a82b7121936a7cd34 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 16 Dec 2023 15:05:08 -0800 Subject: fix incorrect register selection for `vpmov*2m` with `rex.r` set --- src/shared/evex.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/shared') diff --git a/src/shared/evex.in b/src/shared/evex.in index 837b867..58ec14a 100644 --- a/src/shared/evex.in +++ b/src/shared/evex.in @@ -2810,6 +2810,9 @@ pub(crate) fn read_evex_operands< if mem_oper == OperandSpec::RegMMM { instruction.mem_size = 0; instruction.regs[0].bank = RegisterBank::K; + if instruction.regs[0].num > 7 { + return Err(DecodeError::InvalidOperand); + } } else { return Err(DecodeError::InvalidOperand); } -- cgit v1.1