[X86] Be consistent about using pre/post increment/decrement in nearby code. NFC

llvm-svn: 262309
This commit is contained in:
Craig Topper 2016-03-01 06:42:46 +00:00
parent 65a6fe0c66
commit b8c29b4ae9
1 changed files with 4 additions and 4 deletions

View File

@ -1312,7 +1312,7 @@ encodeInstruction(const MCInst &MI, raw_ostream &OS,
SrcRegNum = CurOp + 1;
if (HasEVEX_K) // Skip writemask
SrcRegNum++;
++SrcRegNum;
if (HasVEX_4V) // Skip 1st src (which is encoded in VEX_VVVV)
++SrcRegNum;
@ -1327,7 +1327,7 @@ encodeInstruction(const MCInst &MI, raw_ostream &OS,
SrcRegNum = CurOp + X86::AddrNumOperands;
if (HasEVEX_K) // Skip writemask
SrcRegNum++;
++SrcRegNum;
if (HasVEX_4V) // Skip 1st src (which is encoded in VEX_VVVV)
++SrcRegNum;
@ -1343,7 +1343,7 @@ encodeInstruction(const MCInst &MI, raw_ostream &OS,
SrcRegNum = CurOp + 1;
if (HasEVEX_K) // Skip writemask
SrcRegNum++;
++SrcRegNum;
if (HasVEX_4V) // Skip 1st src (which is encoded in VEX_VVVV)
++SrcRegNum;
@ -1360,7 +1360,7 @@ encodeInstruction(const MCInst &MI, raw_ostream &OS,
++CurOp;
// do not count the rounding control operand
if (HasEVEX_RC)
NumOps--;
--NumOps;
break;
case X86II::MRMSrcMem: {