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 7aeef4af530c586d3bfe2a86fba6d5f6a5dcccbc..1a94d66eed2833c518adbd6bfd3a17ce6f559f6f 100644 |
--- a/src/compiler/mips/code-generator-mips.cc |
+++ b/src/compiler/mips/code-generator-mips.cc |
@@ -1641,6 +1641,39 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( |
i.InputSimd128Register(1)); |
break; |
} |
+ case kMipsF32x4Splat: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ FmoveLow(kScratchReg, i.InputSingleRegister(0)); |
+ __ fill_w(i.OutputSimd128Register(), kScratchReg); |
+ break; |
+ } |
+ case kMipsF32x4ExtractLane: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ copy_u_w(kScratchReg, i.InputSimd128Register(0), i.InputInt8(1)); |
+ __ FmoveLow(i.OutputSingleRegister(), kScratchReg); |
+ break; |
+ } |
+ case kMipsF32x4ReplaceLane: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ Simd128Register src = i.InputSimd128Register(0); |
+ Simd128Register dst = i.OutputSimd128Register(); |
+ if (!src.is(dst)) { |
+ __ move_v(dst, src); |
+ } |
+ __ FmoveLow(kScratchReg, i.InputSingleRegister(2)); |
+ __ insert_w(dst, i.InputInt8(1), kScratchReg); |
+ break; |
+ } |
+ case kMipsF32x4SConvertI32x4: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ ffint_s_w(i.OutputSimd128Register(), i.InputSimd128Register(0)); |
+ break; |
+ } |
+ case kMipsF32x4UConvertI32x4: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ ffint_u_w(i.OutputSimd128Register(), i.InputSimd128Register(0)); |
+ break; |
+ } |
} |
return kSuccess; |
} // NOLINT(readability/fn_size) |