summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-09-13 01:44:01 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-09-13 01:44:01 +0000
commit380482ac461146a9bad219433144585e0a7f5deb (patch)
treea8667ac9abaa6d06dc86d3a71609c50ecc7c41a1 /llvm/lib/Target/ARM
parentba28161103a88c4a46af4f5cbd16b29680ff1588 (diff)
downloadbcm5719-llvm-380482ac461146a9bad219433144585e0a7f5deb.tar.gz
bcm5719-llvm-380482ac461146a9bad219433144585e0a7f5deb.zip
Typo.
llvm-svn: 56182
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/ARMCodeEmitter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMCodeEmitter.cpp b/llvm/lib/Target/ARM/ARMCodeEmitter.cpp
index 1484d165e45..ec585fb8555 100644
--- a/llvm/lib/Target/ARM/ARMCodeEmitter.cpp
+++ b/llvm/lib/Target/ARM/ARMCodeEmitter.cpp
@@ -408,9 +408,9 @@ unsigned ARMCodeEmitter::getAddrMode2InstrBinary(const MachineInstr &MI,
const MachineOperand &MO2 = MI.getOperand(2);
const MachineOperand &MO3 = MI.getOperand(3);
- // Set bit U(23) according to signal of immed value (positive or negative).
+ // Set bit U(23) according to sign of immed value (positive or negative).
Binary |= ((ARM_AM::getAM2Op(MO3.getImm()) == ARM_AM::add ? 1 : 0) <<
- ARMII::U_BitShift);
+ ARMII::U_BitShift);
if (!MO2.getReg()) { // is immediate
if (ARM_AM::getAM2Offset(MO3.getImm()))
// Set the value of offset_12 field
@@ -446,7 +446,7 @@ unsigned ARMCodeEmitter::getAddrMode3InstrBinary(const MachineInstr &MI,
const MachineOperand &MO2 = MI.getOperand(2);
const MachineOperand &MO3 = MI.getOperand(3);
- // Set bit U(23) according to signal of immed value (positive or negative)
+ // Set bit U(23) according to sign of immed value (positive or negative)
Binary |= ((ARM_AM::getAM2Op(MO3.getImm()) == ARM_AM::add ? 1 : 0) <<
ARMII::U_BitShift);
OpenPOWER on IntegriCloud