| 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 0607245e2f7cf818338374ed749011555648e522..651a306a8c596cef9569b53d96ff501fa83db95d 100644
|
| --- a/src/compiler/mips64/code-generator-mips64.cc
|
| +++ b/src/compiler/mips64/code-generator-mips64.cc
|
| @@ -991,6 +991,13 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
|
| __ mfc1(i.OutputRegister(), scratch);
|
| break;
|
| }
|
| + case kMips64TruncLS: {
|
| + FPURegister scratch = kScratchDoubleReg;
|
| + // Other arches use round to zero here, so we follow.
|
| + __ trunc_l_s(scratch, i.InputDoubleRegister(0));
|
| + __ dmfc1(i.OutputRegister(), scratch);
|
| + break;
|
| + }
|
| case kMips64TruncLD: {
|
| FPURegister scratch = kScratchDoubleReg;
|
| // Other arches use round to zero here, so we follow.
|
|
|