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

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

Issue 2713613005: [wasm]implement simd lowering for F32x4 and I32x4 binops (Closed)
Patch Set: use namespace 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
Index: src/compiler/wasm-compiler.cc
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
index da04b3d410d54c659e4a77ae63b22026ac3ac1d8..88d8c16593d2a8bd8dd8a0d0d99b67856b808144 100644
--- a/src/compiler/wasm-compiler.cc
+++ b/src/compiler/wasm-compiler.cc
@@ -3375,6 +3375,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]);

Powered by Google App Engine
This is Rietveld 408576698