| Index: src/compiler/wasm-compiler.cc
|
| diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
|
| index 0e886cf75acb13655b4c3f2e34b2c6f6f75b76b2..6d1d0ecdbb0124217965715f853bd755de73d3af 100644
|
| --- a/src/compiler/wasm-compiler.cc
|
| +++ b/src/compiler/wasm-compiler.cc
|
| @@ -3124,9 +3124,9 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
|
| case wasm::kExprI32x4Add:
|
| return graph()->NewNode(jsgraph()->machine()->Int32x4Add(), inputs[0],
|
| inputs[1]);
|
| - case wasm::kExprF32x4ExtractLane:
|
| - return graph()->NewNode(jsgraph()->machine()->Float32x4ExtractLane(),
|
| - inputs[0], inputs[1]);
|
| + case wasm::kExprI32x4Sub:
|
| + return graph()->NewNode(jsgraph()->machine()->Int32x4Sub(), inputs[0],
|
| + inputs[1]);
|
| case wasm::kExprF32x4Splat:
|
| return graph()->NewNode(jsgraph()->machine()->CreateFloat32x4(),
|
| inputs[0], inputs[0], inputs[0], inputs[0]);
|
| @@ -3138,15 +3138,18 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
|
| }
|
| }
|
|
|
| -Node* WasmGraphBuilder::SimdExtractLane(wasm::WasmOpcode opcode, uint8_t lane,
|
| - Node* input) {
|
| +Node* WasmGraphBuilder::SimdLaneOp(wasm::WasmOpcode opcode, uint8_t lane,
|
| + const NodeVector& inputs) {
|
| switch (opcode) {
|
| case wasm::kExprI32x4ExtractLane:
|
| - return graph()->NewNode(jsgraph()->machine()->Int32x4ExtractLane(), input,
|
| - Int32Constant(lane));
|
| + return graph()->NewNode(jsgraph()->common()->Int32x4ExtractLane(lane),
|
| + inputs[0]);
|
| + case wasm::kExprI32x4ReplaceLane:
|
| + return graph()->NewNode(jsgraph()->common()->Int32x4ReplaceLane(lane),
|
| + inputs[0], inputs[1]);
|
| case wasm::kExprF32x4ExtractLane:
|
| - return graph()->NewNode(jsgraph()->machine()->Float32x4ExtractLane(),
|
| - input, Int32Constant(lane));
|
| + return graph()->NewNode(jsgraph()->common()->Float32x4ExtractLane(lane),
|
| + inputs[0]);
|
| default:
|
| return graph()->NewNode(UnsupportedOpcode(opcode), nullptr);
|
| }
|
|
|