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 db02346cc885cd2f17c524ec9cac4d3a0e5b7206..767da7062cec0439b4e3be5a3783e714490f35a0 100644 |
--- a/src/compiler/mips64/code-generator-mips64.cc |
+++ b/src/compiler/mips64/code-generator-mips64.cc |
@@ -2413,6 +2413,139 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( |
i.InputInt3(1)); |
break; |
} |
+ case kMips64I8x16Add: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ addv_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64I8x16AddSaturateS: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ adds_s_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64I8x16Sub: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ subv_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64I8x16SubSaturateS: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ subs_s_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64I8x16Mul: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ mulv_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64I8x16MaxS: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ max_s_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64I8x16MinS: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ min_s_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64I8x16Eq: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ ceq_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64I8x16Ne: { |
+ 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 kMips64I8x16GtS: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ clt_s_b(i.OutputSimd128Register(), i.InputSimd128Register(1), |
+ i.InputSimd128Register(0)); |
+ break; |
+ } |
+ case kMips64I8x16GeS: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ cle_s_b(i.OutputSimd128Register(), i.InputSimd128Register(1), |
+ i.InputSimd128Register(0)); |
+ break; |
+ } |
+ case kMips64I8x16ShrU: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ srli_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputInt3(1)); |
+ break; |
+ } |
+ case kMips64I8x16AddSaturateU: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ adds_u_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64I8x16SubSaturateU: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ subs_u_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64I8x16MaxU: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ max_u_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64I8x16MinU: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ min_u_b(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64I8x16GtU: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ clt_u_b(i.OutputSimd128Register(), i.InputSimd128Register(1), |
+ i.InputSimd128Register(0)); |
+ break; |
+ } |
+ case kMips64I8x16GeU: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ cle_u_b(i.OutputSimd128Register(), i.InputSimd128Register(1), |
+ i.InputSimd128Register(0)); |
+ break; |
+ } |
+ case kMips64S128And: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ and_v(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64S128Or: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ or_v(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64S128Xor: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ xor_v(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(1)); |
+ break; |
+ } |
+ case kMips64S128Not: { |
+ CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
+ __ nor_v(i.OutputSimd128Register(), i.InputSimd128Register(0), |
+ i.InputSimd128Register(0)); |
+ break; |
+ } |
} |
return kSuccess; |
} // NOLINT(readability/fn_size) |