summaryrefslogtreecommitdiff
path: root/compiler/optimizing
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2014-10-23 16:04:25 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-10-23 16:04:25 +0000
commite2b2cbf8bffdf9ee3ece487fde9ac78652b4abaf (patch)
treea66582c2cb6026be2f59ba66ff437429b67bbe44 /compiler/optimizing
parentb1bcf57e9fcaa95447fc3b9dfd7d0068e6106cca (diff)
parent096cc029451f4d48a79361ec206b6a7f3f58dd7c (diff)
Merge "[optimizing compiler] Handle SUB_FLOAT/DOUBLE nodes"
Diffstat (limited to 'compiler/optimizing')
-rw-r--r--compiler/optimizing/builder.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/compiler/optimizing/builder.cc b/compiler/optimizing/builder.cc
index f48f4c3990..79cbd0ee21 100644
--- a/compiler/optimizing/builder.cc
+++ b/compiler/optimizing/builder.cc
@@ -783,6 +783,16 @@ bool HGraphBuilder::AnalyzeDexInstruction(const Instruction& instruction, uint32
break;
}
+ case Instruction::SUB_FLOAT: {
+ Binop_23x<HSub>(instruction, Primitive::kPrimFloat);
+ break;
+ }
+
+ case Instruction::SUB_DOUBLE: {
+ Binop_23x<HSub>(instruction, Primitive::kPrimDouble);
+ break;
+ }
+
case Instruction::ADD_INT_2ADDR: {
Binop_12x<HAdd>(instruction, Primitive::kPrimInt);
break;
@@ -833,6 +843,16 @@ bool HGraphBuilder::AnalyzeDexInstruction(const Instruction& instruction, uint32
break;
}
+ case Instruction::SUB_FLOAT_2ADDR: {
+ Binop_12x<HSub>(instruction, Primitive::kPrimFloat);
+ break;
+ }
+
+ case Instruction::SUB_DOUBLE_2ADDR: {
+ Binop_12x<HSub>(instruction, Primitive::kPrimDouble);
+ break;
+ }
+
case Instruction::MUL_INT_2ADDR: {
Binop_12x<HMul>(instruction, Primitive::kPrimInt);
break;