| 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 767da7062cec0439b4e3be5a3783e714490f35a0..e904eaacaa660ca3482bafc79732598fac52f858 100644
|
| --- a/src/compiler/mips64/code-generator-mips64.cc
|
| +++ b/src/compiler/mips64/code-generator-mips64.cc
|
| @@ -2546,6 +2546,62 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
|
| i.InputSimd128Register(0));
|
| break;
|
| }
|
| + case kMips64S1x4AnyTrue:
|
| + case kMips64S1x8AnyTrue:
|
| + case kMips64S1x16AnyTrue: {
|
| + CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
|
| + Register dst = i.OutputRegister();
|
| + Label all_false;
|
| + __ BranchMSA(&all_false, MSA_BRANCH_V, all_zero,
|
| + i.InputSimd128Register(0), USE_DELAY_SLOT);
|
| + __ li(dst, 0); // branch delay slot
|
| + __ li(dst, -1);
|
| + __ bind(&all_false);
|
| + break;
|
| + }
|
| + case kMips64S1x4AllTrue: {
|
| + CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
|
| + Register dst = i.OutputRegister();
|
| + Label all_true;
|
| + __ BranchMSA(&all_true, MSA_BRANCH_W, all_not_zero,
|
| + i.InputSimd128Register(0), USE_DELAY_SLOT);
|
| + __ li(dst, -1); // branch delay slot
|
| + __ li(dst, 0);
|
| + __ bind(&all_true);
|
| + break;
|
| + }
|
| + case kMips64S1x8AllTrue: {
|
| + CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
|
| + Register dst = i.OutputRegister();
|
| + Label all_true;
|
| + __ BranchMSA(&all_true, MSA_BRANCH_H, all_not_zero,
|
| + i.InputSimd128Register(0), USE_DELAY_SLOT);
|
| + __ li(dst, -1); // branch delay slot
|
| + __ li(dst, 0);
|
| + __ bind(&all_true);
|
| + break;
|
| + }
|
| + case kMips64S1x16AllTrue: {
|
| + CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
|
| + Register dst = i.OutputRegister();
|
| + Label all_true;
|
| + __ BranchMSA(&all_true, MSA_BRANCH_B, all_not_zero,
|
| + i.InputSimd128Register(0), USE_DELAY_SLOT);
|
| + __ li(dst, -1); // branch delay slot
|
| + __ li(dst, 0);
|
| + __ bind(&all_true);
|
| + break;
|
| + }
|
| + case kMips64MsaLd: {
|
| + CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
|
| + __ ld_b(i.OutputSimd128Register(), i.MemoryOperand());
|
| + break;
|
| + }
|
| + case kMips64MsaSt: {
|
| + CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
|
| + __ st_b(i.InputSimd128Register(2), i.MemoryOperand());
|
| + break;
|
| + }
|
| }
|
| return kSuccess;
|
| } // NOLINT(readability/fn_size)
|
|
|