Index: src/compiler/mips/code-generator-mips.cc |
diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc |
index 181fddbae316bab7852115a129dca7f068ad34d3..c1f722d30e2674a68753fea16b16c706e7300aa9 100644 |
--- a/src/compiler/mips/code-generator-mips.cc |
+++ b/src/compiler/mips/code-generator-mips.cc |
@@ -944,6 +944,12 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
__ cvt_d_w(i.OutputDoubleRegister(), scratch); |
break; |
} |
+ case kMipsCvtSW: { |
+ FPURegister scratch = kScratchDoubleReg; |
+ __ mtc1(i.InputRegister(0), scratch); |
+ __ cvt_s_w(i.OutputDoubleRegister(), scratch); |
+ break; |
+ } |
case kMipsCvtDUw: { |
FPURegister scratch = kScratchDoubleReg; |
__ Cvt_d_uw(i.OutputDoubleRegister(), i.InputRegister(0), scratch); |
@@ -974,6 +980,30 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
__ mfc1(i.OutputRegister(), scratch); |
break; |
} |
+ case kMipsFloorWS: { |
+ FPURegister scratch = kScratchDoubleReg; |
+ __ floor_w_s(scratch, i.InputDoubleRegister(0)); |
+ __ mfc1(i.OutputRegister(), scratch); |
+ break; |
+ } |
+ case kMipsCeilWS: { |
+ FPURegister scratch = kScratchDoubleReg; |
+ __ ceil_w_s(scratch, i.InputDoubleRegister(0)); |
+ __ mfc1(i.OutputRegister(), scratch); |
+ break; |
+ } |
+ case kMipsRoundWS: { |
+ FPURegister scratch = kScratchDoubleReg; |
+ __ round_w_s(scratch, i.InputDoubleRegister(0)); |
+ __ mfc1(i.OutputRegister(), scratch); |
+ break; |
+ } |
+ case kMipsTruncWS: { |
+ FPURegister scratch = kScratchDoubleReg; |
+ __ trunc_w_s(scratch, i.InputDoubleRegister(0)); |
+ __ mfc1(i.OutputRegister(), scratch); |
+ break; |
+ } |
case kMipsTruncUwD: { |
FPURegister scratch = kScratchDoubleReg; |
// TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. |