VEX_PREFIX_66 doesn't need to set the hasOpSize flag since VEX instructions don't use the size fields it controls.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199470 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper 2014-01-17 07:11:45 +00:00
parent ad6662f202
commit 4b42f26ab5

View File

@ -490,8 +490,6 @@ static int readPrefixes(struct InternalInstruction* insn) {
| (bFromEVEX2of4(insn->vectorExtensionPrefix[1]) << 0);
}
hasOpSize = (VEX_PREFIX_66 == ppFromEVEX3of4(insn->vectorExtensionPrefix[2]));
dbgprintf(insn, "Found EVEX prefix 0x%hhx 0x%hhx 0x%hhx 0x%hhx",
insn->vectorExtensionPrefix[0], insn->vectorExtensionPrefix[1],
insn->vectorExtensionPrefix[2], insn->vectorExtensionPrefix[3]);
@ -529,15 +527,6 @@ static int readPrefixes(struct InternalInstruction* insn) {
| (bFromVEX2of3(insn->vectorExtensionPrefix[1]) << 0);
}
switch (ppFromVEX3of3(insn->vectorExtensionPrefix[2]))
{
default:
break;
case VEX_PREFIX_66:
hasOpSize = TRUE;
break;
}
dbgprintf(insn, "Found VEX prefix 0x%hhx 0x%hhx 0x%hhx",
insn->vectorExtensionPrefix[0], insn->vectorExtensionPrefix[1],
insn->vectorExtensionPrefix[2]);