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 c0b99eed09f4cc01ceae3864553e3b4761335314..d79e6a6f638790fd8669cf0a13648d7e8d339c01 100644 |
--- a/src/compiler/mips/code-generator-mips.cc |
+++ b/src/compiler/mips/code-generator-mips.cc |
@@ -2093,6 +2093,139 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( |
i.InputInt3(1)); |
break; |
} |
+ case kMipsI8x16Add: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ addv_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsI8x16AddSaturateS: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ adds_s_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsI8x16Sub: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ subv_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsI8x16SubSaturateS: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ subs_s_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsI8x16Mul: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ mulv_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsI8x16MaxS: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ max_s_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsI8x16MinS: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ min_s_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsI8x16Eq: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ ceq_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsI8x16Ne: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ Simd128Register dst = i.OutputSimd128Register(); |
+ __ ceq_b(dst, i.InputSimd128Register(0), i.InputSimd128Register(1)); |
+ __ nor_v(dst, dst, dst); |
+ break; |
+ } |
+ case kMipsI8x16GtS: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ clt_s_b(i.OutputSimd128Register(), i.InputSimd128Register(1), |
+ i.InputSimd128Register(0)); |
+ break; |
+ } |
+ case kMipsI8x16GeS: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ cle_s_b(i.OutputSimd128Register(), i.InputSimd128Register(1), |
+ i.InputSimd128Register(0)); |
+ break; |
+ } |
+ case kMipsI8x16ShrU: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ srli_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputInt3(1)); |
+ break; |
+ } |
+ case kMipsI8x16AddSaturateU: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ adds_u_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsI8x16SubSaturateU: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ subs_u_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsI8x16MaxU: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ max_u_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsI8x16MinU: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ min_u_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsI8x16GtU: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ clt_u_b(i.OutputSimd128Register(), i.InputSimd128Register(1), |
+ i.InputSimd128Register(0)); |
+ break; |
+ } |
+ case kMipsI8x16GeU: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ cle_u_b(i.OutputSimd128Register(), i.InputSimd128Register(1), |
+ i.InputSimd128Register(0)); |
+ break; |
+ } |
+ case kMipsS128And: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ and_v(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsS128Or: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ or_v(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsS128Xor: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ xor_v(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMipsS128Not: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ nor_v(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(0)); |
+ break; |
+ } |
} |
return kSuccess; |
} // NOLINT(readability/fn_size) |