[X86] NFC: Clean up and clang-format a few lines

llvm-svn: 246340
This commit is contained in:
Vedant Kumar 2015-08-28 21:59:00 +00:00
parent b56b5af4c3
commit 44fccb7b50
1 changed files with 5 additions and 5 deletions

View File

@ -990,8 +990,8 @@ static int getID(struct InternalInstruction* insn, const void *miiArg) {
switch (insn->opcode) { switch (insn->opcode) {
case 0xE8: case 0xE8:
case 0xE9: case 0xE9:
if (insn->opcodeType == // Take care of psubsb and other mmx instructions.
ONEBYTE) { // breaks psubsb and other mmx instructions otherwise if (insn->opcodeType == ONEBYTE) {
attrMask ^= ATTR_OPSIZE; attrMask ^= ATTR_OPSIZE;
insn->immediateSize = 4; insn->immediateSize = 4;
insn->displacementSize = 4; insn->displacementSize = 4;
@ -1011,11 +1011,11 @@ static int getID(struct InternalInstruction* insn, const void *miiArg) {
case 0x8D: case 0x8D:
case 0x8E: case 0x8E:
case 0x8F: case 0x8F:
if (insn->opcodeType == // Take care of lea and three byte ops.
TWOBYTE) { // breaks lea and three byte ops otherwise if (insn->opcodeType == TWOBYTE) {
attrMask ^= ATTR_OPSIZE; attrMask ^= ATTR_OPSIZE;
insn->immediateSize = 4; insn->immediateSize = 4;
insn->displacementSize = 4; // otherwise not sign extended insn->displacementSize = 4;
} }
break; break;
} }