From 981e45424f52735b1c61ae0eac7e299ed313f8db Mon Sep 17 00:00:00 2001 From: Roland Levillain Date: Fri, 14 Nov 2014 11:47:14 +0000 Subject: Add support for int-to-char in the optimizing compiler. - Add support for the int-to-char Dex instruction in the optimizing compiler. - Implement the ARM and Thumb-2 UBFX instructions and add tests for them. - Generate x86, x86-64 and ARM (but not ARM64) code for byte to char, short to char, int to char (and char to char!) HTypeConversion nodes. - Add related tests to test/422-type-conversion. Change-Id: I5cd4c6d86f0f6a966c059715b98db35cc8f9de76 --- compiler/optimizing/builder.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'compiler/optimizing/builder.cc') diff --git a/compiler/optimizing/builder.cc b/compiler/optimizing/builder.cc index df3d57ebdf..b51b6e7d25 100644 --- a/compiler/optimizing/builder.cc +++ b/compiler/optimizing/builder.cc @@ -1007,6 +1007,11 @@ bool HGraphBuilder::AnalyzeDexInstruction(const Instruction& instruction, uint32 break; } + case Instruction::INT_TO_CHAR: { + Conversion_12x(instruction, Primitive::kPrimInt, Primitive::kPrimChar); + break; + } + case Instruction::ADD_INT: { Binop_23x(instruction, Primitive::kPrimInt); break; -- cgit v1.2.3-59-g8ed1b