[llvm] r246340 - [X86] NFC: Clean up and clang-format a few lines
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 28 14:59:00 PDT 2015
Author: vedantk
Date: Fri Aug 28 16:59:00 2015
New Revision: 246340
URL: http://llvm.org/viewvc/llvm-project?rev=246340&view=rev
Log:
[X86] NFC: Clean up and clang-format a few lines
Modified:
llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp
Modified: llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp?rev=246340&r1=246339&r2=246340&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp (original)
+++ llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp Fri Aug 28 16:59:00 2015
@@ -990,8 +990,8 @@ static int getID(struct InternalInstruct
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;
@@ -1011,11 +1011,11 @@ static int getID(struct InternalInstruct
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;
}
More information about the llvm-commits
mailing list