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

Unified Diff: src/compiler/mips/instruction-selector-mips.cc

Issue 2801683003: MIPS[64]: Support for some SIMD operations (8) (Closed)
Patch Set: 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/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..ff60778638b8503d6178856ac6361e8a44a6a45f 100644
--- a/src/compiler/mips/instruction-selector-mips.cc
+++ b/src/compiler/mips/instruction-selector-mips.cc
@@ -278,8 +278,10 @@ void InstructionSelector::VisitLoad(Node* node) {
case MachineRepresentation::kWord32:
opcode = kMipsLw;
break;
+ case MachineRepresentation::kSimd128:
+ opcode = kMipsMsaLd;
+ break;
case MachineRepresentation::kWord64: // Fall through.
- case MachineRepresentation::kSimd128: // Fall through.
case MachineRepresentation::kSimd1x4: // Fall through.
case MachineRepresentation::kSimd1x8: // Fall through.
case MachineRepresentation::kSimd1x16: // Fall through.
@@ -366,8 +368,10 @@ void InstructionSelector::VisitStore(Node* node) {
case MachineRepresentation::kWord32:
opcode = kMipsSw;
break;
+ case MachineRepresentation::kSimd128:
+ opcode = kMipsMsaSt;
+ break;
case MachineRepresentation::kWord64: // Fall through.
- case MachineRepresentation::kSimd128: // Fall through.
case MachineRepresentation::kSimd1x4: // Fall through.
case MachineRepresentation::kSimd1x8: // Fall through.
case MachineRepresentation::kSimd1x16: // Fall through.
@@ -1218,8 +1222,10 @@ void InstructionSelector::VisitUnalignedLoad(Node* node) {
case MachineRepresentation::kFloat64:
opcode = kMipsUldc1;
break;
+ case MachineRepresentation::kSimd128:
+ opcode = kMipsMsaLd;
+ break;
case MachineRepresentation::kWord64: // Fall through.
- case MachineRepresentation::kSimd128: // Fall through.
case MachineRepresentation::kSimd1x4: // Fall through.
case MachineRepresentation::kSimd1x8: // Fall through.
case MachineRepresentation::kSimd1x16: // Fall through.
@@ -1271,8 +1277,10 @@ void InstructionSelector::VisitUnalignedStore(Node* node) {
case MachineRepresentation::kWord32:
opcode = kMipsUsw;
break;
+ case MachineRepresentation::kSimd128:
+ opcode = kMipsMsaSt;
+ break;
case MachineRepresentation::kWord64: // Fall through.
- case MachineRepresentation::kSimd128: // Fall through.
case MachineRepresentation::kSimd1x4: // Fall through.
case MachineRepresentation::kSimd1x8: // Fall through.
case MachineRepresentation::kSimd1x16: // Fall through.
@@ -1975,6 +1983,78 @@ void InstructionSelector::VisitF32x4UConvertI32x4(Node* node) {
VisitRR(this, kMipsF32x4UConvertI32x4, node);
}
+void InstructionSelector::VisitS1x4And(Node* node) {
+ VisitRRR(this, kMipsS128And, node);
+}
+
+void InstructionSelector::VisitS1x4Or(Node* node) {
+ VisitRRR(this, kMipsS128Or, node);
+}
+
+void InstructionSelector::VisitS1x4Xor(Node* node) {
+ VisitRRR(this, kMipsS128Xor, node);
+}
+
+void InstructionSelector::VisitS1x4Not(Node* node) {
+ VisitRR(this, kMipsS128Not, node);
+}
+
+void InstructionSelector::VisitS1x4AnyTrue(Node* node) {
+ VisitRR(this, kMipsS1x4AnyTrue, node);
+}
+
+void InstructionSelector::VisitS1x4AllTrue(Node* node) {
+ VisitRR(this, kMipsS1x4AllTrue, node);
+}
+
+void InstructionSelector::VisitS1x8And(Node* node) {
+ VisitRRR(this, kMipsS128And, node);
+}
+
+void InstructionSelector::VisitS1x8Or(Node* node) {
+ VisitRRR(this, kMipsS128Or, node);
+}
+
+void InstructionSelector::VisitS1x8Xor(Node* node) {
+ VisitRRR(this, kMipsS128Xor, node);
+}
+
+void InstructionSelector::VisitS1x8Not(Node* node) {
+ VisitRR(this, kMipsS128Not, node);
+}
+
+void InstructionSelector::VisitS1x8AnyTrue(Node* node) {
+ VisitRR(this, kMipsS1x8AnyTrue, node);
+}
+
+void InstructionSelector::VisitS1x8AllTrue(Node* node) {
+ VisitRR(this, kMipsS1x8AllTrue, node);
+}
+
+void InstructionSelector::VisitS1x16And(Node* node) {
+ VisitRRR(this, kMipsS128And, node);
+}
+
+void InstructionSelector::VisitS1x16Or(Node* node) {
+ VisitRRR(this, kMipsS128Or, node);
+}
+
+void InstructionSelector::VisitS1x16Xor(Node* node) {
+ VisitRRR(this, kMipsS128Xor, node);
+}
+
+void InstructionSelector::VisitS1x16Not(Node* node) {
+ VisitRR(this, kMipsS128Not, node);
+}
+
+void InstructionSelector::VisitS1x16AnyTrue(Node* node) {
+ VisitRR(this, kMipsS1x16AnyTrue, node);
+}
+
+void InstructionSelector::VisitS1x16AllTrue(Node* node) {
+ VisitRR(this, kMipsS1x16AllTrue, node);
+}
+
// static
MachineOperatorBuilder::Flags
InstructionSelector::SupportedMachineOperatorFlags() {

Powered by Google App Engine
This is Rietveld 408576698