Index: src/mips/assembler-mips.cc |
diff --git a/src/mips/assembler-mips.cc b/src/mips/assembler-mips.cc |
index 7249f77e4be56378cdb22a4eceb4b8a005964094..96373579d8e098df42c9950aff67f02a1a343e0e 100644 |
--- a/src/mips/assembler-mips.cc |
+++ b/src/mips/assembler-mips.cc |
@@ -2078,16 +2078,31 @@ void Assembler::DoubleAsTwoUInt32(double d, uint32_t* lo, uint32_t* hi) { |
// Arithmetic. |
+void Assembler::add_s(FPURegister fd, FPURegister fs, FPURegister ft) { |
+ GenInstrRegister(COP1, S, ft, fs, fd, ADD_D); |
+} |
+ |
+ |
void Assembler::add_d(FPURegister fd, FPURegister fs, FPURegister ft) { |
GenInstrRegister(COP1, D, ft, fs, fd, ADD_D); |
} |
+void Assembler::sub_s(FPURegister fd, FPURegister fs, FPURegister ft) { |
+ GenInstrRegister(COP1, S, ft, fs, fd, SUB_D); |
+} |
+ |
+ |
void Assembler::sub_d(FPURegister fd, FPURegister fs, FPURegister ft) { |
GenInstrRegister(COP1, D, ft, fs, fd, SUB_D); |
} |
+void Assembler::mul_s(FPURegister fd, FPURegister fs, FPURegister ft) { |
+ GenInstrRegister(COP1, S, ft, fs, fd, MUL_D); |
+} |
+ |
+ |
void Assembler::mul_d(FPURegister fd, FPURegister fs, FPURegister ft) { |
GenInstrRegister(COP1, D, ft, fs, fd, MUL_D); |
} |
@@ -2100,6 +2115,11 @@ void Assembler::madd_d(FPURegister fd, FPURegister fr, FPURegister fs, |
} |
+void Assembler::div_s(FPURegister fd, FPURegister fs, FPURegister ft) { |
+ GenInstrRegister(COP1, S, ft, fs, fd, DIV_D); |
+} |
+ |
+ |
void Assembler::div_d(FPURegister fd, FPURegister fs, FPURegister ft) { |
GenInstrRegister(COP1, D, ft, fs, fd, DIV_D); |
} |
@@ -2115,11 +2135,21 @@ void Assembler::mov_d(FPURegister fd, FPURegister fs) { |
} |
+void Assembler::neg_s(FPURegister fd, FPURegister fs) { |
+ GenInstrRegister(COP1, S, f0, fs, fd, NEG_D); |
+} |
+ |
+ |
void Assembler::neg_d(FPURegister fd, FPURegister fs) { |
GenInstrRegister(COP1, D, f0, fs, fd, NEG_D); |
} |
+void Assembler::sqrt_s(FPURegister fd, FPURegister fs) { |
+ GenInstrRegister(COP1, S, f0, fs, fd, SQRT_D); |
+} |
+ |
+ |
void Assembler::sqrt_d(FPURegister fd, FPURegister fs) { |
GenInstrRegister(COP1, D, f0, fs, fd, SQRT_D); |
} |