llvm.org GIT mirror llvm / 48b828f
Indexing off by one resulted in errant encoding of source register for reg->reg moves. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57011 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 11 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
415415 const MachineOperand &MO = MI.getOperand(OpIdx);
416416 if (MO.isReg())
417417 // Encode register Rm.
418 return Binary | getMachineOpValue(MI, NumDefs + 1);
418 return Binary | getMachineOpValue(MI, NumDefs);
419419
420420 // Encode so_imm.
421421 // Set bit I(25) to identify this is the immediate form of