From d5018897273f3b889f025a79ef28199ad2a640bf Mon Sep 17 00:00:00 2001 From: buzbee Date: Wed, 11 Jul 2012 14:23:40 -0700 Subject: 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 --- src/compiler/codegen/MethodBitcode.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler/codegen/MethodBitcode.cc') 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(rhs)) { opRegImm(cUnit, kOpCmp, rlSrc1.lowReg, src2->getSExtValue()); + } else if (llvm::dyn_cast(rhs) != NULL) { + opRegImm(cUnit, kOpCmp, rlSrc1.lowReg, 0); } else { RegLocation rlSrc2 = getLoc(cUnit, rhs); rlSrc2 = loadValue(cUnit, rlSrc2, kCoreReg); -- cgit v1.2.3-59-g8ed1b