Index: src/mips64/assembler-mips64.cc |
diff --git a/src/mips64/assembler-mips64.cc b/src/mips64/assembler-mips64.cc |
index 5c1677de3c6a424cac6dd6ef9101e027dff05412..2653f4ac33999c1abb59ad60165c16af9fbdc72c 100644 |
--- a/src/mips64/assembler-mips64.cc |
+++ b/src/mips64/assembler-mips64.cc |
@@ -2277,16 +2277,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); |
} |
@@ -2298,6 +2313,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); |
} |
@@ -2313,11 +2333,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); |
} |