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

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

Issue 2801683003: MIPS[64]: Support for some SIMD operations (8) (Closed)
Patch Set: Rebase Created 3 years, 7 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/mips64/instruction-codes-mips64.h ('k') | src/mips/assembler-mips.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/mips64/instruction-selector-mips64.cc
diff --git a/src/compiler/mips64/instruction-selector-mips64.cc b/src/compiler/mips64/instruction-selector-mips64.cc
index 8126621bae242ea10b1aba8389173b276ccccb1a..c67f6cc99bb7f99988271a6573423d2b0edd736b 100644
--- a/src/compiler/mips64/instruction-selector-mips64.cc
+++ b/src/compiler/mips64/instruction-selector-mips64.cc
@@ -411,7 +411,9 @@ void InstructionSelector::VisitLoad(Node* node) {
case MachineRepresentation::kWord64:
opcode = kMips64Ld;
break;
- case MachineRepresentation::kSimd128: // Fall through.
+ case MachineRepresentation::kSimd128:
+ opcode = kMips64MsaLd;
+ break;
case MachineRepresentation::kSimd1x4: // Fall through.
case MachineRepresentation::kSimd1x8: // Fall through.
case MachineRepresentation::kSimd1x16: // Fall through.
@@ -491,7 +493,9 @@ void InstructionSelector::VisitStore(Node* node) {
case MachineRepresentation::kWord64:
opcode = kMips64Sd;
break;
- case MachineRepresentation::kSimd128: // Fall through.
+ case MachineRepresentation::kSimd128:
+ opcode = kMips64MsaSt;
+ break;
case MachineRepresentation::kSimd1x4: // Fall through.
case MachineRepresentation::kSimd1x8: // Fall through.
case MachineRepresentation::kSimd1x16: // Fall through.
@@ -1785,7 +1789,9 @@ void InstructionSelector::VisitUnalignedLoad(Node* node) {
case MachineRepresentation::kWord64:
opcode = kMips64Uld;
break;
- case MachineRepresentation::kSimd128: // Fall through.
+ case MachineRepresentation::kSimd128:
+ opcode = kMips64MsaLd;
+ break;
case MachineRepresentation::kSimd1x4: // Fall through.
case MachineRepresentation::kSimd1x8: // Fall through.
case MachineRepresentation::kSimd1x16: // Fall through.
@@ -1838,7 +1844,9 @@ void InstructionSelector::VisitUnalignedStore(Node* node) {
case MachineRepresentation::kWord64:
opcode = kMips64Usd;
break;
- case MachineRepresentation::kSimd128: // Fall through.
+ case MachineRepresentation::kSimd128:
+ opcode = kMips64MsaSt;
+ break;
case MachineRepresentation::kSimd1x4: // Fall through.
case MachineRepresentation::kSimd1x8: // Fall through.
case MachineRepresentation::kSimd1x16: // Fall through.
@@ -3093,6 +3101,78 @@ void InstructionSelector::VisitS128Not(Node* node) {
VisitRR(this, kMips64S128Not, node);
}
+void InstructionSelector::VisitS1x4And(Node* node) {
+ VisitRRR(this, kMips64S128And, node);
+}
+
+void InstructionSelector::VisitS1x4Or(Node* node) {
+ VisitRRR(this, kMips64S128Or, node);
+}
+
+void InstructionSelector::VisitS1x4Xor(Node* node) {
+ VisitRRR(this, kMips64S128Xor, node);
+}
+
+void InstructionSelector::VisitS1x4Not(Node* node) {
+ VisitRR(this, kMips64S128Not, node);
+}
+
+void InstructionSelector::VisitS1x4AnyTrue(Node* node) {
+ VisitRR(this, kMips64S1x4AnyTrue, node);
+}
+
+void InstructionSelector::VisitS1x4AllTrue(Node* node) {
+ VisitRR(this, kMips64S1x4AllTrue, node);
+}
+
+void InstructionSelector::VisitS1x8And(Node* node) {
+ VisitRRR(this, kMips64S128And, node);
+}
+
+void InstructionSelector::VisitS1x8Or(Node* node) {
+ VisitRRR(this, kMips64S128Or, node);
+}
+
+void InstructionSelector::VisitS1x8Xor(Node* node) {
+ VisitRRR(this, kMips64S128Xor, node);
+}
+
+void InstructionSelector::VisitS1x8Not(Node* node) {
+ VisitRR(this, kMips64S128Not, node);
+}
+
+void InstructionSelector::VisitS1x8AnyTrue(Node* node) {
+ VisitRR(this, kMips64S1x8AnyTrue, node);
+}
+
+void InstructionSelector::VisitS1x8AllTrue(Node* node) {
+ VisitRR(this, kMips64S1x8AllTrue, node);
+}
+
+void InstructionSelector::VisitS1x16And(Node* node) {
+ VisitRRR(this, kMips64S128And, node);
+}
+
+void InstructionSelector::VisitS1x16Or(Node* node) {
+ VisitRRR(this, kMips64S128Or, node);
+}
+
+void InstructionSelector::VisitS1x16Xor(Node* node) {
+ VisitRRR(this, kMips64S128Xor, node);
+}
+
+void InstructionSelector::VisitS1x16Not(Node* node) {
+ VisitRR(this, kMips64S128Not, node);
+}
+
+void InstructionSelector::VisitS1x16AnyTrue(Node* node) {
+ VisitRR(this, kMips64S1x16AnyTrue, node);
+}
+
+void InstructionSelector::VisitS1x16AllTrue(Node* node) {
+ VisitRR(this, kMips64S1x16AllTrue, node);
+}
+
// static
MachineOperatorBuilder::Flags
InstructionSelector::SupportedMachineOperatorFlags() {
« no previous file with comments | « src/compiler/mips64/instruction-codes-mips64.h ('k') | src/mips/assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698