[llvm-commits] [llvm] r57011 - /llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
Jim Grosbach
grosbach at apple.com
Fri Oct 3 08:53:56 PDT 2008
Author: grosbach
Date: Fri Oct 3 10:53:56 2008
New Revision: 57011
URL: http://llvm.org/viewvc/llvm-project?rev=57011&view=rev
Log:
Indexing off by one resulted in errant encoding of source register for
reg->reg moves.
Modified:
llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp?rev=57011&r1=57010&r2=57011&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp Fri Oct 3 10:53:56 2008
@@ -416,7 +416,7 @@
const MachineOperand &MO = MI.getOperand(OpIdx);
if (MO.isReg())
// Encode register Rm.
- return Binary | getMachineOpValue(MI, NumDefs + 1);
+ return Binary | getMachineOpValue(MI, NumDefs);
// Encode so_imm.
// Set bit I(25) to identify this is the immediate form of <shifter_op>
More information about the llvm-commits
mailing list