Skip to content
Browse files

Register sizes are in bits. Divide by 8.

  • Loading branch information...
1 parent 90ef1f6 commit 5c9dd91b05d551060886937298a8744764efcf9d @Blei Blei committed Jul 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Target/X86/X86InstrInfo.cpp
View
2 lib/Target/X86/X86InstrInfo.cpp
@@ -2595,7 +2595,7 @@ void X86InstrInfo::insertSelect(MachineBasicBlock &MBB,
MachineRegisterInfo &MRI = MBB.getParent()->getRegInfo();
assert(Cond.size() == 1 && "Invalid Cond array");
unsigned Opc = getCMovFromCond((X86::CondCode)Cond[0].getImm(),
- MRI.getRegClass(DstReg)->getSize());
+ MRI.getRegClass(DstReg)->getSize()/8);
BuildMI(MBB, I, DL, get(Opc), DstReg).addReg(FalseReg).addReg(TrueReg);
}

0 comments on commit 5c9dd91

Please sign in to comment.
Something went wrong with that request. Please try again.