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

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

Issue 2804883008: [WASM SIMD] Implement horizontal add for float and integer types. (Closed)
Patch Set: Fix MIPS. 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
Index: src/compiler/wasm-compiler.cc
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
index 90376be9d3eece37f78d5154d7a0474fdf1620e8..06e875568beb70c0393058859cd4fc44bd55460d 100644
--- a/src/compiler/wasm-compiler.cc
+++ b/src/compiler/wasm-compiler.cc
@@ -3199,6 +3199,9 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
case wasm::kExprF32x4Add:
return graph()->NewNode(jsgraph()->machine()->F32x4Add(), inputs[0],
inputs[1]);
+ case wasm::kExprF32x4AddHoriz:
+ return graph()->NewNode(jsgraph()->machine()->F32x4AddHoriz(), inputs[0],
+ inputs[1]);
case wasm::kExprF32x4Sub:
return graph()->NewNode(jsgraph()->machine()->F32x4Sub(), inputs[0],
inputs[1]);
@@ -3257,6 +3260,9 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
case wasm::kExprI32x4Add:
return graph()->NewNode(jsgraph()->machine()->I32x4Add(), inputs[0],
inputs[1]);
+ case wasm::kExprI32x4AddHoriz:
+ return graph()->NewNode(jsgraph()->machine()->I32x4AddHoriz(), inputs[0],
+ inputs[1]);
case wasm::kExprI32x4Sub:
return graph()->NewNode(jsgraph()->machine()->I32x4Sub(), inputs[0],
inputs[1]);
@@ -3330,6 +3336,9 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
case wasm::kExprI16x8AddSaturateS:
return graph()->NewNode(jsgraph()->machine()->I16x8AddSaturateS(),
inputs[0], inputs[1]);
+ case wasm::kExprI16x8AddHoriz:
+ return graph()->NewNode(jsgraph()->machine()->I16x8AddHoriz(), inputs[0],
+ inputs[1]);
case wasm::kExprI16x8Sub:
return graph()->NewNode(jsgraph()->machine()->I16x8Sub(), inputs[0],
inputs[1]);
@@ -3409,6 +3418,9 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
case wasm::kExprI8x16AddSaturateS:
return graph()->NewNode(jsgraph()->machine()->I8x16AddSaturateS(),
inputs[0], inputs[1]);
+ case wasm::kExprI8x16AddHoriz:
+ return graph()->NewNode(jsgraph()->machine()->I8x16AddHoriz(), inputs[0],
+ inputs[1]);
case wasm::kExprI8x16Sub:
return graph()->NewNode(jsgraph()->machine()->I8x16Sub(), inputs[0],
inputs[1]);

Powered by Google App Engine
This is Rietveld 408576698