From 624279f3c70f9904cbaf428078981b05d3b324c0 Mon Sep 17 00:00:00 2001 From: Roland Levillain Date: Thu, 4 Dec 2014 11:54:28 +0000 Subject: Add support for float-to-long in the optimizing compiler. - Add support for the float-to-long Dex instruction in the optimizing compiler. - Add a Dex PC field to art::HTypeConversion to allow the x86 and ARM code generators to produce runtime calls. - Instruct art::CodeGenerator::RecordPcInfo not to record PC information for HTypeConversion instructions. - Add S0 to the list of ARM FPU parameter registers. - Have art::x86_64::X86_64Assembler::cvttss2si work with 64-bit operands. - Generate x86, x86-64 and ARM (but not ARM64) code for float to long HTypeConversion nodes. - Add related tests to test/422-type-conversion. Change-Id: I954214f0d537187883f83f7a83a1bb2dd8a21fd4 --- compiler/optimizing/code_generator.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/optimizing/code_generator.h') diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index 7c8f6a2d29..1d42c47d56 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -37,6 +37,8 @@ static int64_t constexpr k2Pow31EncodingForDouble = INT64_C(0x41E0000000000000); // Maximum value for a primitive integer. static int32_t constexpr kPrimIntMax = 0x7fffffff; +// Maximum value for a primitive long. +static int64_t constexpr kPrimLongMax = 0x7fffffffffffffff; class Assembler; class CodeGenerator; -- cgit v1.2.3-59-g8ed1b