summaryrefslogtreecommitdiff
path: root/compiler/optimizing/builder.cc
diff options
context:
space:
mode:
author Roland Levillain <rpl@google.com> 2014-11-06 17:36:00 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2014-11-06 17:36:00 +0000
commite5af7f5a78e44ebfa0a6c699c262866a517eff13 (patch)
tree5b4a84126d91551debc91b2b5333b2d20419681d /compiler/optimizing/builder.cc
parent7f4ffd2d9309b93ab8b58734be501d6fa18460d4 (diff)
parentadc3e13db74c193302ac9d56735924cad32083cc (diff)
am adc3e13d: Merge "Support float & double negation in the optimizing compiler."
* commit 'adc3e13db74c193302ac9d56735924cad32083cc': Support float & double negation in the optimizing compiler.
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 1820a6a57c..a31ea29ae1 100644
--- a/compiler/optimizing/builder.cc
+++ b/compiler/optimizing/builder.cc
@@ -904,6 +904,16 @@ bool HGraphBuilder::AnalyzeDexInstruction(const Instruction& instruction, uint32
break;
}
+ case Instruction::NEG_FLOAT: {
+ Unop_12x<HNeg>(instruction, Primitive::kPrimFloat);
+ break;
+ }
+
+ case Instruction::NEG_DOUBLE: {
+ Unop_12x<HNeg>(instruction, Primitive::kPrimDouble);
+ break;
+ }
+
case Instruction::NOT_INT: {
Unop_12x<HNot>(instruction, Primitive::kPrimInt);
break;