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

Unified Diff: src/compiler/wasm-compiler.cc

Issue 2713613005: [wasm]implement simd lowering for F32x4 and I32x4 binops (Closed)
Patch Set: rebase Created 3 years, 10 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/simd-scalar-lowering.cc ('k') | src/wasm/wasm-macro-gen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/wasm-compiler.cc
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
index 3daa9e645ddc4267112d46521133b6fac17e1afd..f4b4a18d7310492f270b726274f714c3d4718ced 100644
--- a/src/compiler/wasm-compiler.cc
+++ b/src/compiler/wasm-compiler.cc
@@ -3380,6 +3380,18 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
case wasm::kExprF32x4Sub:
return graph()->NewNode(jsgraph()->machine()->Float32x4Sub(), inputs[0],
inputs[1]);
+ case wasm::kExprF32x4Mul:
+ return graph()->NewNode(jsgraph()->machine()->Float32x4Mul(), inputs[0],
+ inputs[1]);
+ case wasm::kExprF32x4Div:
+ return graph()->NewNode(jsgraph()->machine()->Float32x4Div(), inputs[0],
+ inputs[1]);
+ case wasm::kExprF32x4Min:
+ return graph()->NewNode(jsgraph()->machine()->Float32x4Min(), inputs[0],
+ inputs[1]);
+ case wasm::kExprF32x4Max:
+ return graph()->NewNode(jsgraph()->machine()->Float32x4Max(), inputs[0],
+ inputs[1]);
case wasm::kExprF32x4Eq:
return graph()->NewNode(jsgraph()->machine()->Float32x4Equal(), inputs[0],
inputs[1]);
« no previous file with comments | « src/compiler/simd-scalar-lowering.cc ('k') | src/wasm/wasm-macro-gen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698