summaryrefslogtreecommitdiff
path: root/compiler/optimizing/builder.cc
diff options
context:
space:
mode:
author Roland Levillain <rpl@google.com> 2014-11-18 09:59:13 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-11-18 09:59:14 +0000
commit27e49ba4b67b6006284edf4d52e7c498ddb37022 (patch)
treef9f4103f1c7f29bb7f72769129c10e10e884793a /compiler/optimizing/builder.cc
parent440e3e3f103163a11ebce6376ac79c755c395c2a (diff)
parentcff137481eda0eb8dbdf9d2a303ae2bdac2c7322 (diff)
Merge "Add support for int-to-float & int-to-double in optimizing."
Diffstat (limited to 'compiler/optimizing/builder.cc')
-rw-r--r--compiler/optimizing/builder.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/optimizing/builder.cc b/compiler/optimizing/builder.cc
index 7ead607693..be8631ad42 100644
--- a/compiler/optimizing/builder.cc
+++ b/compiler/optimizing/builder.cc
@@ -1002,6 +1002,16 @@ bool HGraphBuilder::AnalyzeDexInstruction(const Instruction& instruction, uint32
break;
}
+ case Instruction::INT_TO_FLOAT: {
+ Conversion_12x(instruction, Primitive::kPrimInt, Primitive::kPrimFloat);
+ break;
+ }
+
+ case Instruction::INT_TO_DOUBLE: {
+ Conversion_12x(instruction, Primitive::kPrimInt, Primitive::kPrimDouble);
+ break;
+ }
+
case Instruction::LONG_TO_INT: {
Conversion_12x(instruction, Primitive::kPrimLong, Primitive::kPrimInt);
break;