From f8641ce5def8efe641dbc6f9590098764ebcf470 Mon Sep 17 00:00:00 2001 From: TDYa127 Date: Mon, 2 Apr 2012 06:40:40 -0700 Subject: Fix the division overflow. Passing IntMath test. Change-Id: I807858515a802f2efaa4802460e5f507eb944772 --- src/compiler_llvm/method_compiler.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/compiler_llvm/method_compiler.h') diff --git a/src/compiler_llvm/method_compiler.h b/src/compiler_llvm/method_compiler.h index 7e5604605a..6f24799af5 100644 --- a/src/compiler_llvm/method_compiler.h +++ b/src/compiler_llvm/method_compiler.h @@ -284,6 +284,12 @@ class MethodCompiler { IntArithmKind arithm, JType op_jty); + llvm::Value* EmitIntDivRemResultComputation(uint32_t dex_pc, + llvm::Value* dividend, + llvm::Value* divisor, + IntArithmKind arithm, + JType op_jty); + llvm::Value* EmitIntShiftArithmResultComputation(uint32_t dex_pc, llvm::Value* lhs, llvm::Value* rhs, -- cgit v1.2.3-59-g8ed1b