summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-11-12 08:14:21 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-11-12 08:14:21 +0000
commit052f20d3b1f027113340da011c9b161f87b51372 (patch)
tree5d693d230b5a416cf03388de5a3aaf59963d707a /llvm/lib/Target
parentd95377341b7bf916ec102cebf302a90dc1ce37b8 (diff)
downloadbcm5719-llvm-052f20d3b1f027113340da011c9b161f87b51372.tar.gz
bcm5719-llvm-052f20d3b1f027113340da011c9b161f87b51372.zip
Fix a VFP binary arithmetic instruction encoding bug.
llvm-svn: 59116
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/ARMCodeEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMCodeEmitter.cpp b/llvm/lib/Target/ARM/ARMCodeEmitter.cpp
index e877aa707aa..2fdd9ce10b9 100644
--- a/llvm/lib/Target/ARM/ARMCodeEmitter.cpp
+++ b/llvm/lib/Target/ARM/ARMCodeEmitter.cpp
@@ -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() ||
OpenPOWER on IntegriCloud