Index: src/compiler/x64/instruction-selector-x64.cc |
diff --git a/src/compiler/x64/instruction-selector-x64.cc b/src/compiler/x64/instruction-selector-x64.cc |
index 8079e2fe2d520e6e4a0a06e2bf1d909f2ea3ecb2..b43d42679e449c9ee7b9f675e123988f9964946c 100644 |
--- a/src/compiler/x64/instruction-selector-x64.cc |
+++ b/src/compiler/x64/instruction-selector-x64.cc |
@@ -2379,8 +2379,29 @@ void InstructionSelector::VisitCreateInt32x4(Node* node) { |
void InstructionSelector::VisitInt32x4ExtractLane(Node* node) { |
X64OperandGenerator g(this); |
+ int32_t lane = OpParameter<int32_t>(node); |
Emit(kX64Int32x4ExtractLane, g.DefineAsRegister(node), |
- g.UseRegister(node->InputAt(0)), g.UseImmediate(node->InputAt(1))); |
+ g.UseRegister(node->InputAt(0)), g.UseImmediate(lane)); |
+} |
+ |
+void InstructionSelector::VisitInt32x4ReplaceLane(Node* node) { |
+ X64OperandGenerator g(this); |
+ int32_t lane = OpParameter<int32_t>(node); |
+ Emit(kX64Int32x4ReplaceLane, g.DefineSameAsFirst(node), |
+ g.UseRegister(node->InputAt(0)), g.UseImmediate(lane), |
+ g.Use(node->InputAt(1))); |
+} |
+ |
+void InstructionSelector::VisitInt32x4Add(Node* node) { |
+ X64OperandGenerator g(this); |
+ Emit(kX64Int32x4Add, g.DefineSameAsFirst(node), |
+ g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1))); |
+} |
+ |
+void InstructionSelector::VisitInt32x4Sub(Node* node) { |
+ X64OperandGenerator g(this); |
+ Emit(kX64Int32x4Sub, g.DefineSameAsFirst(node), |
+ g.UseRegister(node->InputAt(0)), g.UseRegister(node->InputAt(1))); |
} |
// static |