Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Commit

Permalink
[X86] NFC: Clean up and clang-format a few lines
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246340 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
vedantk committed Aug 28, 2015
1 parent 819d0a5 commit 21f084a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -990,8 +990,8 @@ static int getID(struct InternalInstruction* insn, const void *miiArg) {
switch (insn->opcode) {
case 0xE8:
case 0xE9:
if (insn->opcodeType ==
ONEBYTE) { // breaks psubsb and other mmx instructions otherwise
// Take care of psubsb and other mmx instructions.
if (insn->opcodeType == ONEBYTE) {
attrMask ^= ATTR_OPSIZE;
insn->immediateSize = 4;
insn->displacementSize = 4;
Expand All @@ -1011,11 +1011,11 @@ static int getID(struct InternalInstruction* insn, const void *miiArg) {
case 0x8D:
case 0x8E:
case 0x8F:
if (insn->opcodeType ==
TWOBYTE) { // breaks lea and three byte ops otherwise
// Take care of lea and three byte ops.
if (insn->opcodeType == TWOBYTE) {
attrMask ^= ATTR_OPSIZE;
insn->immediateSize = 4;
insn->displacementSize = 4; // otherwise not sign extended
insn->displacementSize = 4;
}
break;
}
Expand Down

0 comments on commit 21f084a

Please sign in to comment.