Skip to content

Commit af9a423

Browse files
committed
Mov ADSIZE special for evex movdir64b
1 parent db9c6c0 commit af9a423

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,8 +1175,6 @@ static int getInstructionID(struct InternalInstruction *insn,
11751175
attrMask |= ATTR_VEXL;
11761176
if (l2FromEVEX4of4(insn->vectorExtensionPrefix[3]))
11771177
attrMask |= ATTR_EVEXL2;
1178-
if (insn->hasAdSize)
1179-
attrMask |= ATTR_ADSIZE;
11801178
} else if (insn->vectorExtensionType == TYPE_VEX_3B) {
11811179
switch (ppFromVEX3of3(insn->vectorExtensionPrefix[2])) {
11821180
case VEX_PREFIX_66:
@@ -1332,7 +1330,8 @@ static int getInstructionID(struct InternalInstruction *insn,
13321330
// any position.
13331331
if ((insn->opcodeType == ONEBYTE && ((insn->opcode & 0xFC) == 0xA0)) ||
13341332
(insn->opcodeType == TWOBYTE && (insn->opcode == 0xAE)) ||
1335-
(insn->opcodeType == THREEBYTE_38 && insn->opcode == 0xF8)) {
1333+
(insn->opcodeType == THREEBYTE_38 && insn->opcode == 0xF8) ||
1334+
(insn->vectorExtensionType == TYPE_EVEX && insn->opcode == 0xF8)) {
13361335
// Make sure we observed the prefixes in any position.
13371336
if (insn->hasAdSize)
13381337
attrMask |= ATTR_ADSIZE;

0 commit comments

Comments
 (0)