mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-06 09:44:39 +00:00
[X86] There are only 8 mask registers. Fail disassembly if instruction tries to reference more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230931 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d21acaf6a1
commit
2d9a799b16
@ -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); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user