summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/MethodBitcode.cc
diff options
context:
space:
mode:
author buzbee <buzbee@google.com> 2012-07-11 14:23:40 -0700
committer buzbee <buzbee@google.com> 2012-07-11 14:23:40 -0700
commitd5018897273f3b889f025a79ef28199ad2a640bf (patch)
tree63477c7788be3ddaeea49a06b97bdc1293f65334 /src/compiler/codegen/MethodBitcode.cc
parentf1f863695b28f630abb772f50170fefaddc2fb91 (diff)
Quick compiler - run-test bug fixes
Miscellaneous bug fixes, largely dealing with making llvm happy with consistent types. This CL causes the quick compiler to additionally pass run-tests 004, 036, 044, 64, 068, 072, 074, 085. Still failing: 042, 053, 075. Change-Id: Ic3c9aa981e641ac68179d42d03b4c9b84cac9b85
Diffstat (limited to 'src/compiler/codegen/MethodBitcode.cc')
-rw-r--r--src/compiler/codegen/MethodBitcode.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/codegen/MethodBitcode.cc b/src/compiler/codegen/MethodBitcode.cc
index 89c11c6fa2..3eb6a89c49 100644
--- a/src/compiler/codegen/MethodBitcode.cc
+++ b/src/compiler/codegen/MethodBitcode.cc
@@ -2344,6 +2344,8 @@ void cvtICmpBr(CompilationUnit* cUnit, llvm::Instruction* inst,
// TODO: handle fused CMP_LONG/IF_xxZ case
if (llvm::ConstantInt* src2 = llvm::dyn_cast<llvm::ConstantInt>(rhs)) {
opRegImm(cUnit, kOpCmp, rlSrc1.lowReg, src2->getSExtValue());
+ } else if (llvm::dyn_cast<llvm::ConstantPointerNull>(rhs) != NULL) {
+ opRegImm(cUnit, kOpCmp, rlSrc1.lowReg, 0);
} else {
RegLocation rlSrc2 = getLoc(cUnit, rhs);
rlSrc2 = loadValue(cUnit, rlSrc2, kCoreReg);