Fix a VFP binary arithmetic instruction encoding bug.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 12 Nov 2008 08:14:21 +0000 (08:14 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 12 Nov 2008 08:14:21 +0000 (08:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59116 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMCodeEmitter.cpp

index e877aa707aad69c894912e31d203a7944e1d9f3e..2fdd9ce10b9d514a941469dcdab11af8e21f60c3 100644 (file)
@@ -1102,7 +1102,7 @@ void ARMCodeEmitter::emitVFPArithInstruction(const MachineInstr &MI) {
 
   // Encode Dn / Sn.
   if ((TID.TSFlags & ARMII::FormMask) == ARMII::VFPBinaryFrm)
-    Binary |= encodeVFPRn(MI, OpIdx);
+    Binary |= encodeVFPRn(MI, OpIdx++);
 
   if (OpIdx == TID.getNumOperands() ||
       TID.OpInfo[OpIdx].isPredicate() ||