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 8edbb9eba0ad9462b789fde52c230f0c938d95da..6850a9f3d6447145d22256f98fd9134b124ba39a 100644 |
--- a/src/compiler/mips64/code-generator-mips64.cc |
+++ b/src/compiler/mips64/code-generator-mips64.cc |
@@ -1350,6 +1350,12 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
__ Trunc_uw_d(i.InputDoubleRegister(0), i.OutputRegister(), scratch); |
break; |
} |
+ case kMips64TruncUwS: { |
+ FPURegister scratch = kScratchDoubleReg; |
+ // TODO(plind): Fix wrong param order of Trunc_uw_d() macro-asm function. |
+ __ Trunc_uw_s(i.InputDoubleRegister(0), i.OutputRegister(), scratch); |
+ break; |
+ } |
case kMips64TruncUlS: { |
FPURegister scratch = kScratchDoubleReg; |
Register result = instr->OutputCount() > 1 ? i.OutputRegister(1) : no_reg; |