From 66ce173a40eff4392e9949ede169ccf3108be2db Mon Sep 17 00:00:00 2001 From: Roland Levillain Date: Thu, 23 Oct 2014 16:38:33 +0100 Subject: Implement long negate instruction in the optimizing compiler. - Add support for the neg-long (long integer two's complement negate) instruction in the optimizing compiler. - Add a 64-bit NEG instruction (negq) to the x86-64 assembler. - Generate ARM, x86 and x86-64 code for integer HNeg nodes. - Put neg-related tests into test/415-optimizing-arith-neg. Change-Id: I1fbe9611e134408a6b8745d1df20ab6ffa5e50f2 --- 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 79cbd0ee21..0ab7782e2c 100644 --- a/compiler/optimizing/builder.cc +++ b/compiler/optimizing/builder.cc @@ -748,6 +748,11 @@ bool HGraphBuilder::AnalyzeDexInstruction(const Instruction& instruction, uint32 break; } + case Instruction::NEG_LONG: { + Unop_12x(instruction, Primitive::kPrimLong); + break; + } + case Instruction::NOT_INT: { Unop_12x(instruction, Primitive::kPrimInt); break; -- cgit v1.2.3-59-g8ed1b