Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: src/compiler/mips/code-generator-mips.cc

Issue 2827143002: [WASM SIMD] Remove opcodes that are slow on some platforms. (Closed)
Patch Set: Remove stray tests. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/mips/instruction-codes-mips.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6c6cb52414cf4c7c67ff29d9386dd5f500ff5a4c..2456b919a27028a32a8fe5a8e04ef3707d9f4317 100644
--- a/src/compiler/mips/code-generator-mips.cc
+++ b/src/compiler/mips/code-generator-mips.cc
@@ -1782,34 +1782,11 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
__ frcp_w(i.OutputSimd128Register(), i.InputSimd128Register(0));
break;
}
- case kMipsF32x4RecipRefine: {
- CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
- Simd128Register dst = i.OutputSimd128Register();
- // Emulate with 2.0f - a * b
- __ ldi_w(kSimd128ScratchReg, 2);
- __ ffint_u_w(kSimd128ScratchReg, kSimd128ScratchReg);
- __ fmul_w(dst, i.InputSimd128Register(0), i.InputSimd128Register(1));
- __ fsub_w(dst, kSimd128ScratchReg, dst);
- break;
- }
case kMipsF32x4RecipSqrtApprox: {
CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
__ frsqrt_w(i.OutputSimd128Register(), i.InputSimd128Register(0));
break;
}
- case kMipsF32x4RecipSqrtRefine: {
- CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
- Simd128Register dst = i.OutputSimd128Register();
- // Emulate with (3.0f - a * b) * 0.5f;
- __ ldi_w(kSimd128ScratchReg, 3);
- __ ffint_u_w(kSimd128ScratchReg, kSimd128ScratchReg);
- __ fmul_w(dst, i.InputSimd128Register(0), i.InputSimd128Register(1));
- __ fsub_w(dst, kSimd128ScratchReg, dst);
- __ ldi_w(kSimd128ScratchReg, 0x3f);
- __ slli_w(kSimd128ScratchReg, kSimd128ScratchReg, 24);
- __ fmul_w(dst, dst, kSimd128ScratchReg);
- break;
- }
case kMipsF32x4Add: {
CpuFeatureScope msa_scope(masm(), MIPS_SIMD);
__ fadd_w(i.OutputSimd128Register(), i.InputSimd128Register(0),
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/mips/instruction-codes-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698