Index: src/compiler/mips/instruction-selector-mips.cc |
diff --git a/src/compiler/mips/instruction-selector-mips.cc b/src/compiler/mips/instruction-selector-mips.cc |
index 9130401713068af5fafa9cdaafe8db75c91368c7..8229190dedf53e36950c858ea1568bbbee54e644 100644 |
--- a/src/compiler/mips/instruction-selector-mips.cc |
+++ b/src/compiler/mips/instruction-selector-mips.cc |
@@ -128,6 +128,12 @@ static void VisitRRR(InstructionSelector* selector, ArchOpcode opcode, |
g.UseRegister(node->InputAt(1))); |
} |
+void VisitRRRR(InstructionSelector* selector, ArchOpcode opcode, Node* node) { |
+ MipsOperandGenerator g(selector); |
+ selector->Emit( |
+ opcode, g.DefineSameAsFirst(node), g.UseRegister(node->InputAt(0)), |
+ g.UseRegister(node->InputAt(1)), g.UseRegister(node->InputAt(2))); |
+} |
static void VisitRR(InstructionSelector* selector, ArchOpcode opcode, |
Node* node) { |
@@ -1975,6 +1981,50 @@ void InstructionSelector::VisitF32x4UConvertI32x4(Node* node) { |
VisitRR(this, kMipsF32x4UConvertI32x4, node); |
} |
+void InstructionSelector::VisitI32x4Mul(Node* node) { |
+ VisitRRR(this, kMipsI32x4Mul, node); |
+} |
+ |
+void InstructionSelector::VisitI32x4MaxS(Node* node) { |
+ VisitRRR(this, kMipsI32x4MaxS, node); |
+} |
+ |
+void InstructionSelector::VisitI32x4MinS(Node* node) { |
+ VisitRRR(this, kMipsI32x4MinS, node); |
+} |
+ |
+void InstructionSelector::VisitI32x4Eq(Node* node) { |
+ VisitRRR(this, kMipsI32x4Eq, node); |
+} |
+ |
+void InstructionSelector::VisitI32x4Ne(Node* node) { |
+ VisitRRR(this, kMipsI32x4Ne, node); |
+} |
+ |
+void InstructionSelector::VisitI32x4Shl(Node* node) { |
+ VisitRRI(this, kMipsI32x4Shl, node); |
+} |
+ |
+void InstructionSelector::VisitI32x4ShrS(Node* node) { |
+ VisitRRI(this, kMipsI32x4ShrS, node); |
+} |
+ |
+void InstructionSelector::VisitI32x4ShrU(Node* node) { |
+ VisitRRI(this, kMipsI32x4ShrU, node); |
+} |
+ |
+void InstructionSelector::VisitI32x4MaxU(Node* node) { |
+ VisitRRR(this, kMipsI32x4MaxU, node); |
+} |
+ |
+void InstructionSelector::VisitI32x4MinU(Node* node) { |
+ VisitRRR(this, kMipsI32x4MinU, node); |
+} |
+ |
+void InstructionSelector::VisitS32x4Select(Node* node) { |
+ VisitRRRR(this, kMipsS32x4Select, node); |
+} |
+ |
// static |
MachineOperatorBuilder::Flags |
InstructionSelector::SupportedMachineOperatorFlags() { |