Index: src/compiler/mips64/code-generator-mips64.cc |
diff --git a/src/compiler/mips64/code-generator-mips64.cc b/src/compiler/mips64/code-generator-mips64.cc |
index d01989225c0c865fa561f39147fd9521605b9efc..3823bb0217ae707178acd2dcb13d782e90d8f9ef 100644 |
--- a/src/compiler/mips64/code-generator-mips64.cc |
+++ b/src/compiler/mips64/code-generator-mips64.cc |
@@ -1295,6 +1295,9 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( |
case kMips64AbsS: |
__ abs_s(i.OutputSingleRegister(), i.InputSingleRegister(0)); |
break; |
+ case kMips64NegS: |
+ __ neg_s(i.OutputSingleRegister(), i.InputSingleRegister(0)); |
+ break; |
case kMips64SqrtS: { |
__ sqrt_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
break; |
@@ -1349,6 +1352,9 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( |
case kMips64AbsD: |
__ abs_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
break; |
+ case kMips64NegD: |
+ __ neg_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
+ break; |
case kMips64SqrtD: { |
__ sqrt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
break; |