summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/arm
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2012-06-20 18:10:21 -0700
committer Elliott Hughes <enh@google.com> 2012-06-21 09:14:27 -0700
commit748474146da0c6484fa3dca0a700f612d47550c3 (patch)
tree58837d0fa82d4099eb4b82b2fd3d2bbf4294e4aa /src/compiler/codegen/arm
parent92e3134cd84c134f167175288671a1e6838c908f (diff)
Fix a bunch of lint.
There are still about 1800 lint warnings, so don't get too excited... Change-Id: I2394bd6e750b94060231378b3a7a88b87f70c757
Diffstat (limited to 'src/compiler/codegen/arm')
-rw-r--r--src/compiler/codegen/arm/Assemble.cc2
-rw-r--r--src/compiler/codegen/arm/Thumb2/Factory.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/codegen/arm/Assemble.cc b/src/compiler/codegen/arm/Assemble.cc
index 86517fa0dd..ede3f6152c 100644
--- a/src/compiler/codegen/arm/Assemble.cc
+++ b/src/compiler/codegen/arm/Assemble.cc
@@ -1305,7 +1305,7 @@ AssemblerStatus oatAssembleInstructions(CompilationUnit* cUnit,
break;
case kFmtDfp: {
DCHECK(DOUBLEREG(operand));
- DCHECK((operand & 0x1) == 0);
+ DCHECK_EQ((operand & 0x1), 0U);
int regName = (operand & FP_REG_MASK) >> 1;
/* Snag the 1-bit slice and position it */
value = ((regName & 0x10) >> 4) << encoder->fieldLoc[i].end;
diff --git a/src/compiler/codegen/arm/Thumb2/Factory.cc b/src/compiler/codegen/arm/Thumb2/Factory.cc
index c9dbe62cdf..c6cb220107 100644
--- a/src/compiler/codegen/arm/Thumb2/Factory.cc
+++ b/src/compiler/codegen/arm/Thumb2/Factory.cc
@@ -660,7 +660,7 @@ LIR* loadBaseIndexed(CompilationUnit* cUnit, int rBase, int rIndex, int rDest,
} else {
DCHECK(DOUBLEREG(rDest));
DCHECK((size == kLong) || (size == kDouble));
- DCHECK((rDest & 0x1) == 0);
+ DCHECK_EQ((rDest & 0x1), 0);
opcode = kThumb2Vldrd;
size = kDouble;
}
@@ -725,7 +725,7 @@ LIR* storeBaseIndexed(CompilationUnit* cUnit, int rBase, int rIndex, int rSrc,
} else {
DCHECK(DOUBLEREG(rSrc));
DCHECK((size == kLong) || (size == kDouble));
- DCHECK((rSrc & 0x1) == 0);
+ DCHECK_EQ((rSrc & 0x1), 0);
opcode = kThumb2Vstrd;
size = kDouble;
}