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

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

Issue 2800523002: [WASM SIMD] Implement packing and unpacking integer conversions. (Closed)
Patch Set: Remove extraneous fn signature. 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/opcodes.h ('k') | src/wasm/wasm-opcodes.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 fba2fa46d3c6bcf204ac7ebe12aa81ed83527029..b6b9e3ff059fb5668fe7e1955ab24b079111e545 100644
--- a/src/compiler/wasm-compiler.cc
+++ b/src/compiler/wasm-compiler.cc
@@ -3246,6 +3246,12 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
case wasm::kExprI32x4UConvertF32x4:
return graph()->NewNode(jsgraph()->machine()->I32x4UConvertF32x4(),
inputs[0]);
+ case wasm::kExprI32x4SConvertI16x8Low:
+ return graph()->NewNode(jsgraph()->machine()->I32x4SConvertI16x8Low(),
+ inputs[0]);
+ case wasm::kExprI32x4SConvertI16x8High:
+ return graph()->NewNode(jsgraph()->machine()->I32x4SConvertI16x8High(),
+ inputs[0]);
case wasm::kExprI32x4Neg:
return graph()->NewNode(jsgraph()->machine()->I32x4Neg(), inputs[0]);
case wasm::kExprI32x4Add:
@@ -3281,6 +3287,12 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
case wasm::kExprI32x4GeS:
return graph()->NewNode(jsgraph()->machine()->I32x4LeS(), inputs[1],
inputs[0]);
+ case wasm::kExprI32x4UConvertI16x8Low:
+ return graph()->NewNode(jsgraph()->machine()->I32x4UConvertI16x8Low(),
+ inputs[0]);
+ case wasm::kExprI32x4UConvertI16x8High:
+ return graph()->NewNode(jsgraph()->machine()->I32x4UConvertI16x8High(),
+ inputs[0]);
case wasm::kExprI32x4MinU:
return graph()->NewNode(jsgraph()->machine()->I32x4MinU(), inputs[0],
inputs[1]);
@@ -3301,8 +3313,17 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
inputs[0]);
case wasm::kExprI16x8Splat:
return graph()->NewNode(jsgraph()->machine()->I16x8Splat(), inputs[0]);
+ case wasm::kExprI16x8SConvertI8x16Low:
+ return graph()->NewNode(jsgraph()->machine()->I16x8SConvertI8x16Low(),
+ inputs[0]);
+ case wasm::kExprI16x8SConvertI8x16High:
+ return graph()->NewNode(jsgraph()->machine()->I16x8SConvertI8x16High(),
+ inputs[0]);
case wasm::kExprI16x8Neg:
return graph()->NewNode(jsgraph()->machine()->I16x8Neg(), inputs[0]);
+ case wasm::kExprI16x8SConvertI32x4:
+ return graph()->NewNode(jsgraph()->machine()->I16x8SConvertI32x4(),
+ inputs[0], inputs[1]);
case wasm::kExprI16x8Add:
return graph()->NewNode(jsgraph()->machine()->I16x8Add(), inputs[0],
inputs[1]);
@@ -3342,6 +3363,15 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
case wasm::kExprI16x8GeS:
return graph()->NewNode(jsgraph()->machine()->I16x8LeS(), inputs[1],
inputs[0]);
+ case wasm::kExprI16x8UConvertI8x16Low:
+ return graph()->NewNode(jsgraph()->machine()->I16x8UConvertI8x16Low(),
+ inputs[0]);
+ case wasm::kExprI16x8UConvertI8x16High:
+ return graph()->NewNode(jsgraph()->machine()->I16x8UConvertI8x16High(),
+ inputs[0]);
+ case wasm::kExprI16x8UConvertI32x4:
+ return graph()->NewNode(jsgraph()->machine()->I16x8UConvertI32x4(),
+ inputs[0], inputs[1]);
case wasm::kExprI16x8AddSaturateU:
return graph()->NewNode(jsgraph()->machine()->I16x8AddSaturateU(),
inputs[0], inputs[1]);
@@ -3370,6 +3400,9 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
return graph()->NewNode(jsgraph()->machine()->I8x16Splat(), inputs[0]);
case wasm::kExprI8x16Neg:
return graph()->NewNode(jsgraph()->machine()->I8x16Neg(), inputs[0]);
+ case wasm::kExprI8x16SConvertI16x8:
+ return graph()->NewNode(jsgraph()->machine()->I8x16SConvertI16x8(),
+ inputs[0], inputs[1]);
case wasm::kExprI8x16Add:
return graph()->NewNode(jsgraph()->machine()->I8x16Add(), inputs[0],
inputs[1]);
@@ -3409,6 +3442,9 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
case wasm::kExprI8x16GeS:
return graph()->NewNode(jsgraph()->machine()->I8x16LeS(), inputs[1],
inputs[0]);
+ case wasm::kExprI8x16UConvertI16x8:
+ return graph()->NewNode(jsgraph()->machine()->I8x16UConvertI16x8(),
+ inputs[0], inputs[1]);
case wasm::kExprI8x16AddSaturateU:
return graph()->NewNode(jsgraph()->machine()->I8x16AddSaturateU(),
inputs[0], inputs[1]);
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/wasm/wasm-opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698