[X86] There are only 8 mask registers. Fail disassembly if instruction tries to reference more.

llvm-svn: 230931
This commit is contained in:
Craig Topper 2015-03-02 03:33:11 +00:00
parent e2c9e64532
commit 9c26bcca5a
1 changed files with 2 additions and 0 deletions

View File

@ -1458,6 +1458,8 @@ static int readModRM(struct InternalInstruction* insn) {
case TYPE_VK1: \
case TYPE_VK8: \
case TYPE_VK16: \
if (index > 7) \
*valid = 0; \
return prefix##_K0 + index; \
case TYPE_MM64: \
return prefix##_MM0 + (index & 0x7); \