| 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 b9d9a6be5690e3e813c8f665de7643ef61de0a12..2c0eeed614415792f59c9f3d41796982cd1ed24b 100644
|
| --- a/src/compiler/mips/code-generator-mips.cc
|
| +++ b/src/compiler/mips/code-generator-mips.cc
|
| @@ -1602,6 +1602,45 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
|
| case kAtomicCompareExchangeWord32:
|
| UNREACHABLE();
|
| break;
|
| + case kMipsSimd128Zero: {
|
| + CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
|
| + __ xor_v(i.OutputSimd128Register(), i.OutputSimd128Register(),
|
| + i.OutputSimd128Register());
|
| + break;
|
| + }
|
| + case kMipsInt32x4Splat: {
|
| + CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
|
| + __ fill_w(i.OutputSimd128Register(), i.InputRegister(0));
|
| + break;
|
| + }
|
| + case kMipsInt32x4ExtractLane: {
|
| + CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
|
| + __ copy_s_w(i.OutputRegister(), i.InputSimd128Register(0),
|
| + i.InputInt8(1));
|
| + break;
|
| + }
|
| + case kMipsInt32x4ReplaceLane: {
|
| + CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
|
| + Simd128Register src = i.InputSimd128Register(0);
|
| + Simd128Register dst = i.OutputSimd128Register();
|
| + if (!src.is(dst)) {
|
| + __ move_v(dst, src);
|
| + }
|
| + __ insert_w(dst, i.InputInt8(1), i.InputRegister(2));
|
| + break;
|
| + }
|
| + case kMipsInt32x4Add: {
|
| + CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
|
| + __ addv_w(i.OutputSimd128Register(), i.InputSimd128Register(0),
|
| + i.InputSimd128Register(1));
|
| + break;
|
| + }
|
| + case kMipsInt32x4Sub: {
|
| + CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
|
| + __ subv_w(i.OutputSimd128Register(), i.InputSimd128Register(0),
|
| + i.InputSimd128Register(1));
|
| + break;
|
| + }
|
| }
|
| return kSuccess;
|
| } // NOLINT(readability/fn_size)
|
|
|