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 0ec2819b373a5f2fd5185e440b645a5955bed0fb..d87b52af8ddb3e4284d4ec69614c76a9384ace83 100644 |
--- a/src/compiler/mips/instruction-selector-mips.cc |
+++ b/src/compiler/mips/instruction-selector-mips.cc |
@@ -1949,477 +1949,183 @@ void InstructionSelector::VisitInt64AbsWithOverflow(Node* node) { |
UNREACHABLE(); |
} |
-void InstructionSelector::VisitI32x4Splat(Node* node) { |
- VisitRR(this, kMipsI32x4Splat, node); |
-} |
- |
-void InstructionSelector::VisitI32x4ExtractLane(Node* node) { |
- VisitRRI(this, kMipsI32x4ExtractLane, node); |
-} |
- |
-void InstructionSelector::VisitI32x4ReplaceLane(Node* node) { |
- VisitRRIR(this, kMipsI32x4ReplaceLane, node); |
-} |
- |
-void InstructionSelector::VisitI32x4Add(Node* node) { |
- VisitRRR(this, kMipsI32x4Add, node); |
-} |
- |
-void InstructionSelector::VisitI32x4Sub(Node* node) { |
- VisitRRR(this, kMipsI32x4Sub, node); |
-} |
- |
-void InstructionSelector::VisitS128Zero(Node* node) { |
- MipsOperandGenerator g(this); |
- Emit(kMipsS128Zero, g.DefineSameAsFirst(node)); |
-} |
- |
-void InstructionSelector::VisitS1x4Zero(Node* node) { |
- MipsOperandGenerator g(this); |
- Emit(kMipsS128Zero, g.DefineSameAsFirst(node)); |
-} |
- |
-void InstructionSelector::VisitS1x8Zero(Node* node) { |
- MipsOperandGenerator g(this); |
- Emit(kMipsS128Zero, g.DefineSameAsFirst(node)); |
-} |
- |
-void InstructionSelector::VisitS1x16Zero(Node* node) { |
- MipsOperandGenerator g(this); |
- Emit(kMipsS128Zero, g.DefineSameAsFirst(node)); |
-} |
- |
-void InstructionSelector::VisitF32x4Splat(Node* node) { |
- VisitRR(this, kMipsF32x4Splat, node); |
-} |
- |
-void InstructionSelector::VisitF32x4ExtractLane(Node* node) { |
- VisitRRI(this, kMipsF32x4ExtractLane, node); |
-} |
- |
-void InstructionSelector::VisitF32x4ReplaceLane(Node* node) { |
- VisitRRIR(this, kMipsF32x4ReplaceLane, node); |
-} |
- |
-void InstructionSelector::VisitF32x4SConvertI32x4(Node* node) { |
- VisitRR(this, kMipsF32x4SConvertI32x4, node); |
-} |
- |
-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); |
-} |
- |
-void InstructionSelector::VisitF32x4Abs(Node* node) { |
- VisitRR(this, kMipsF32x4Abs, node); |
-} |
- |
-void InstructionSelector::VisitF32x4Neg(Node* node) { |
- VisitRR(this, kMipsF32x4Neg, node); |
-} |
- |
-void InstructionSelector::VisitF32x4RecipApprox(Node* node) { |
- VisitRR(this, kMipsF32x4RecipApprox, node); |
-} |
- |
-void InstructionSelector::VisitF32x4RecipSqrtApprox(Node* node) { |
- VisitRR(this, kMipsF32x4RecipSqrtApprox, node); |
-} |
- |
-void InstructionSelector::VisitF32x4Add(Node* node) { |
- VisitRRR(this, kMipsF32x4Add, node); |
-} |
- |
-void InstructionSelector::VisitF32x4Sub(Node* node) { |
- VisitRRR(this, kMipsF32x4Sub, node); |
-} |
- |
-void InstructionSelector::VisitF32x4Mul(Node* node) { |
- VisitRRR(this, kMipsF32x4Mul, node); |
-} |
- |
-void InstructionSelector::VisitF32x4Max(Node* node) { |
- VisitRRR(this, kMipsF32x4Max, node); |
-} |
- |
-void InstructionSelector::VisitF32x4Min(Node* node) { |
- VisitRRR(this, kMipsF32x4Min, node); |
-} |
- |
-void InstructionSelector::VisitF32x4Eq(Node* node) { |
- VisitRRR(this, kMipsF32x4Eq, node); |
-} |
- |
-void InstructionSelector::VisitF32x4Ne(Node* node) { |
- VisitRRR(this, kMipsF32x4Ne, node); |
-} |
- |
-void InstructionSelector::VisitF32x4Lt(Node* node) { |
- VisitRRR(this, kMipsF32x4Lt, node); |
-} |
- |
-void InstructionSelector::VisitF32x4Le(Node* node) { |
- VisitRRR(this, kMipsF32x4Le, node); |
-} |
- |
-void InstructionSelector::VisitI32x4SConvertF32x4(Node* node) { |
- VisitRR(this, kMipsI32x4SConvertF32x4, node); |
-} |
- |
-void InstructionSelector::VisitI32x4UConvertF32x4(Node* node) { |
- VisitRR(this, kMipsI32x4UConvertF32x4, node); |
-} |
- |
-void InstructionSelector::VisitI32x4Neg(Node* node) { |
- VisitRR(this, kMipsI32x4Neg, node); |
-} |
- |
-void InstructionSelector::VisitI32x4GtS(Node* node) { |
- VisitRRR(this, kMipsI32x4GtS, node); |
-} |
- |
-void InstructionSelector::VisitI32x4GeS(Node* node) { |
- VisitRRR(this, kMipsI32x4GeS, node); |
-} |
- |
-void InstructionSelector::VisitI32x4GtU(Node* node) { |
- VisitRRR(this, kMipsI32x4GtU, node); |
-} |
- |
-void InstructionSelector::VisitI32x4GeU(Node* node) { |
- VisitRRR(this, kMipsI32x4GeU, node); |
-} |
- |
-void InstructionSelector::VisitI16x8Splat(Node* node) { |
- VisitRR(this, kMipsI16x8Splat, node); |
-} |
- |
-void InstructionSelector::VisitI16x8ExtractLane(Node* node) { |
- VisitRRI(this, kMipsI16x8ExtractLane, node); |
-} |
- |
-void InstructionSelector::VisitI16x8ReplaceLane(Node* node) { |
- VisitRRIR(this, kMipsI16x8ReplaceLane, node); |
-} |
- |
-void InstructionSelector::VisitI16x8Neg(Node* node) { |
- VisitRR(this, kMipsI16x8Neg, node); |
-} |
- |
-void InstructionSelector::VisitI16x8Shl(Node* node) { |
- VisitRRI(this, kMipsI16x8Shl, node); |
-} |
- |
-void InstructionSelector::VisitI16x8ShrS(Node* node) { |
- VisitRRI(this, kMipsI16x8ShrS, node); |
-} |
- |
-void InstructionSelector::VisitI16x8ShrU(Node* node) { |
- VisitRRI(this, kMipsI16x8ShrU, node); |
-} |
- |
-void InstructionSelector::VisitI16x8Add(Node* node) { |
- VisitRRR(this, kMipsI16x8Add, node); |
-} |
- |
-void InstructionSelector::VisitI16x8AddSaturateS(Node* node) { |
- VisitRRR(this, kMipsI16x8AddSaturateS, node); |
-} |
- |
-void InstructionSelector::VisitI16x8Sub(Node* node) { |
- VisitRRR(this, kMipsI16x8Sub, node); |
-} |
- |
-void InstructionSelector::VisitI16x8SubSaturateS(Node* node) { |
- VisitRRR(this, kMipsI16x8SubSaturateS, node); |
-} |
- |
-void InstructionSelector::VisitI16x8Mul(Node* node) { |
- VisitRRR(this, kMipsI16x8Mul, node); |
-} |
- |
-void InstructionSelector::VisitI16x8MaxS(Node* node) { |
- VisitRRR(this, kMipsI16x8MaxS, node); |
-} |
- |
-void InstructionSelector::VisitI16x8MinS(Node* node) { |
- VisitRRR(this, kMipsI16x8MinS, node); |
-} |
- |
-void InstructionSelector::VisitI16x8Eq(Node* node) { |
- VisitRRR(this, kMipsI16x8Eq, node); |
-} |
- |
-void InstructionSelector::VisitI16x8Ne(Node* node) { |
- VisitRRR(this, kMipsI16x8Ne, node); |
-} |
- |
-void InstructionSelector::VisitI16x8GtS(Node* node) { |
- VisitRRR(this, kMipsI16x8GtS, node); |
-} |
- |
-void InstructionSelector::VisitI16x8GeS(Node* node) { |
- VisitRRR(this, kMipsI16x8GeS, node); |
-} |
- |
-void InstructionSelector::VisitI16x8AddSaturateU(Node* node) { |
- VisitRRR(this, kMipsI16x8AddSaturateU, node); |
-} |
- |
-void InstructionSelector::VisitI16x8SubSaturateU(Node* node) { |
- VisitRRR(this, kMipsI16x8SubSaturateU, node); |
-} |
- |
-void InstructionSelector::VisitI16x8MaxU(Node* node) { |
- VisitRRR(this, kMipsI16x8MaxU, node); |
-} |
- |
-void InstructionSelector::VisitI16x8MinU(Node* node) { |
- VisitRRR(this, kMipsI16x8MinU, node); |
-} |
- |
-void InstructionSelector::VisitI16x8GtU(Node* node) { |
- VisitRRR(this, kMipsI16x8GtU, node); |
-} |
- |
-void InstructionSelector::VisitI16x8GeU(Node* node) { |
- VisitRRR(this, kMipsI16x8GeU, node); |
-} |
- |
-void InstructionSelector::VisitI8x16Splat(Node* node) { |
- VisitRR(this, kMipsI8x16Splat, node); |
-} |
- |
-void InstructionSelector::VisitI8x16ExtractLane(Node* node) { |
- VisitRRI(this, kMipsI8x16ExtractLane, node); |
-} |
- |
-void InstructionSelector::VisitI8x16ReplaceLane(Node* node) { |
- VisitRRIR(this, kMipsI8x16ReplaceLane, node); |
-} |
- |
-void InstructionSelector::VisitI8x16Neg(Node* node) { |
- VisitRR(this, kMipsI8x16Neg, node); |
-} |
- |
-void InstructionSelector::VisitI8x16Shl(Node* node) { |
- VisitRRI(this, kMipsI8x16Shl, node); |
-} |
- |
-void InstructionSelector::VisitI8x16ShrS(Node* node) { |
- VisitRRI(this, kMipsI8x16ShrS, node); |
-} |
- |
-void InstructionSelector::VisitS16x8Select(Node* node) { |
- VisitRRRR(this, kMipsS16x8Select, node); |
-} |
- |
-void InstructionSelector::VisitS8x16Select(Node* node) { |
- VisitRRRR(this, kMipsS8x16Select, node); |
-} |
- |
-void InstructionSelector::VisitI8x16Add(Node* node) { |
- VisitRRR(this, kMipsI8x16Add, node); |
-} |
- |
-void InstructionSelector::VisitI8x16AddSaturateS(Node* node) { |
- VisitRRR(this, kMipsI8x16AddSaturateS, node); |
-} |
- |
-void InstructionSelector::VisitI8x16Sub(Node* node) { |
- VisitRRR(this, kMipsI8x16Sub, node); |
-} |
- |
-void InstructionSelector::VisitI8x16SubSaturateS(Node* node) { |
- VisitRRR(this, kMipsI8x16SubSaturateS, node); |
-} |
- |
-void InstructionSelector::VisitI8x16Mul(Node* node) { |
- VisitRRR(this, kMipsI8x16Mul, node); |
-} |
- |
-void InstructionSelector::VisitI8x16MaxS(Node* node) { |
- VisitRRR(this, kMipsI8x16MaxS, node); |
-} |
- |
-void InstructionSelector::VisitI8x16MinS(Node* node) { |
- VisitRRR(this, kMipsI8x16MinS, node); |
-} |
- |
-void InstructionSelector::VisitI8x16Eq(Node* node) { |
- VisitRRR(this, kMipsI8x16Eq, node); |
-} |
- |
-void InstructionSelector::VisitI8x16Ne(Node* node) { |
- VisitRRR(this, kMipsI8x16Ne, node); |
-} |
- |
-void InstructionSelector::VisitI8x16GtS(Node* node) { |
- VisitRRR(this, kMipsI8x16GtS, node); |
-} |
- |
-void InstructionSelector::VisitI8x16GeS(Node* node) { |
- VisitRRR(this, kMipsI8x16GeS, node); |
-} |
- |
-void InstructionSelector::VisitI8x16ShrU(Node* node) { |
- VisitRRI(this, kMipsI8x16ShrU, node); |
-} |
- |
-void InstructionSelector::VisitI8x16AddSaturateU(Node* node) { |
- VisitRRR(this, kMipsI8x16AddSaturateU, node); |
-} |
- |
-void InstructionSelector::VisitI8x16SubSaturateU(Node* node) { |
- VisitRRR(this, kMipsI8x16SubSaturateU, node); |
-} |
- |
-void InstructionSelector::VisitI8x16MaxU(Node* node) { |
- VisitRRR(this, kMipsI8x16MaxU, node); |
-} |
- |
-void InstructionSelector::VisitI8x16MinU(Node* node) { |
- VisitRRR(this, kMipsI8x16MinU, node); |
-} |
- |
-void InstructionSelector::VisitI8x16GtU(Node* node) { |
- VisitRRR(this, kMipsI8x16GtU, node); |
-} |
- |
-void InstructionSelector::VisitI8x16GeU(Node* node) { |
- VisitRRR(this, kMipsI8x16GeU, node); |
-} |
- |
-void InstructionSelector::VisitS128And(Node* node) { |
- VisitRRR(this, kMipsS128And, node); |
-} |
- |
-void InstructionSelector::VisitS128Or(Node* node) { |
- VisitRRR(this, kMipsS128Or, node); |
-} |
- |
-void InstructionSelector::VisitS128Xor(Node* node) { |
- VisitRRR(this, kMipsS128Xor, node); |
-} |
- |
-void InstructionSelector::VisitS128Not(Node* node) { |
- VisitRR(this, kMipsS128Not, 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); |
-} |
+#define SIMD_TYPE_LIST(V) \ |
+ V(F32x4) \ |
+ V(I32x4) \ |
+ V(I16x8) \ |
+ V(I8x16) |
+ |
+#define SIMD_FORMAT_LIST(V) \ |
+ V(32x4) \ |
+ V(16x8) \ |
+ V(8x16) |
+ |
+#define SIMD_ZERO_OP_LIST(V) \ |
+ V(S128Zero) \ |
+ V(S1x4Zero) \ |
+ V(S1x8Zero) \ |
+ V(S1x16Zero) |
+ |
+#define SIMD_UNOP_LIST(V) \ |
+ V(F32x4SConvertI32x4, kMipsF32x4SConvertI32x4) \ |
+ V(F32x4UConvertI32x4, kMipsF32x4UConvertI32x4) \ |
+ V(F32x4Abs, kMipsF32x4Abs) \ |
+ V(F32x4Neg, kMipsF32x4Neg) \ |
+ V(F32x4RecipApprox, kMipsF32x4RecipApprox) \ |
+ V(F32x4RecipSqrtApprox, kMipsF32x4RecipSqrtApprox) \ |
+ V(I32x4SConvertF32x4, kMipsI32x4SConvertF32x4) \ |
+ V(I32x4UConvertF32x4, kMipsI32x4UConvertF32x4) \ |
+ V(I32x4Neg, kMipsI32x4Neg) \ |
+ V(I16x8Neg, kMipsI16x8Neg) \ |
+ V(I8x16Neg, kMipsI8x16Neg) \ |
+ V(S128Not, kMipsS128Not) \ |
+ V(S1x4Not, kMipsS128Not) \ |
+ V(S1x4AnyTrue, kMipsS1x4AnyTrue) \ |
+ V(S1x4AllTrue, kMipsS1x4AllTrue) \ |
+ V(S1x8Not, kMipsS128Not) \ |
+ V(S1x8AnyTrue, kMipsS1x8AnyTrue) \ |
+ V(S1x8AllTrue, kMipsS1x8AllTrue) \ |
+ V(S1x16Not, kMipsS128Not) \ |
+ V(S1x16AnyTrue, kMipsS1x16AnyTrue) \ |
+ V(S1x16AllTrue, kMipsS1x16AllTrue) |
+ |
+#define SIMD_SHIFT_OP_LIST(V) \ |
+ V(I32x4Shl) \ |
+ V(I32x4ShrS) \ |
+ V(I32x4ShrU) \ |
+ V(I16x8Shl) \ |
+ V(I16x8ShrS) \ |
+ V(I16x8ShrU) \ |
+ V(I8x16Shl) \ |
+ V(I8x16ShrS) \ |
+ V(I8x16ShrU) |
+ |
+#define SIMD_BINOP_LIST(V) \ |
+ V(F32x4Add, kMipsF32x4Add) \ |
+ V(F32x4Sub, kMipsF32x4Sub) \ |
+ V(F32x4Mul, kMipsF32x4Mul) \ |
+ V(F32x4Max, kMipsF32x4Max) \ |
+ V(F32x4Min, kMipsF32x4Min) \ |
+ V(F32x4Eq, kMipsF32x4Eq) \ |
+ V(F32x4Ne, kMipsF32x4Ne) \ |
+ V(F32x4Lt, kMipsF32x4Lt) \ |
+ V(F32x4Le, kMipsF32x4Le) \ |
+ V(I32x4Add, kMipsI32x4Add) \ |
+ V(I32x4Sub, kMipsI32x4Sub) \ |
+ V(I32x4Mul, kMipsI32x4Mul) \ |
+ V(I32x4MaxS, kMipsI32x4MaxS) \ |
+ V(I32x4MinS, kMipsI32x4MinS) \ |
+ V(I32x4MaxU, kMipsI32x4MaxU) \ |
+ V(I32x4MinU, kMipsI32x4MinU) \ |
+ V(I32x4Eq, kMipsI32x4Eq) \ |
+ V(I32x4Ne, kMipsI32x4Ne) \ |
+ V(I32x4GtS, kMipsI32x4GtS) \ |
+ V(I32x4GeS, kMipsI32x4GeS) \ |
+ V(I32x4GtU, kMipsI32x4GtU) \ |
+ V(I32x4GeU, kMipsI32x4GeU) \ |
+ V(I16x8Add, kMipsI16x8Add) \ |
+ V(I16x8AddSaturateS, kMipsI16x8AddSaturateS) \ |
+ V(I16x8AddSaturateU, kMipsI16x8AddSaturateU) \ |
+ V(I16x8Sub, kMipsI16x8Sub) \ |
+ V(I16x8SubSaturateS, kMipsI16x8SubSaturateS) \ |
+ V(I16x8SubSaturateU, kMipsI16x8SubSaturateU) \ |
+ V(I16x8Mul, kMipsI16x8Mul) \ |
+ V(I16x8MaxS, kMipsI16x8MaxS) \ |
+ V(I16x8MinS, kMipsI16x8MinS) \ |
+ V(I16x8MaxU, kMipsI16x8MaxU) \ |
+ V(I16x8MinU, kMipsI16x8MinU) \ |
+ V(I16x8Eq, kMipsI16x8Eq) \ |
+ V(I16x8Ne, kMipsI16x8Ne) \ |
+ V(I16x8GtS, kMipsI16x8GtS) \ |
+ V(I16x8GeS, kMipsI16x8GeS) \ |
+ V(I16x8GtU, kMipsI16x8GtU) \ |
+ V(I16x8GeU, kMipsI16x8GeU) \ |
+ V(I8x16Add, kMipsI8x16Add) \ |
+ V(I8x16AddSaturateS, kMipsI8x16AddSaturateS) \ |
+ V(I8x16AddSaturateU, kMipsI8x16AddSaturateU) \ |
+ V(I8x16Sub, kMipsI8x16Sub) \ |
+ V(I8x16SubSaturateS, kMipsI8x16SubSaturateS) \ |
+ V(I8x16SubSaturateU, kMipsI8x16SubSaturateU) \ |
+ V(I8x16Mul, kMipsI8x16Mul) \ |
+ V(I8x16MaxS, kMipsI8x16MaxS) \ |
+ V(I8x16MinS, kMipsI8x16MinS) \ |
+ V(I8x16MaxU, kMipsI8x16MaxU) \ |
+ V(I8x16MinU, kMipsI8x16MinU) \ |
+ V(I8x16Eq, kMipsI8x16Eq) \ |
+ V(I8x16Ne, kMipsI8x16Ne) \ |
+ V(I8x16GtS, kMipsI8x16GtS) \ |
+ V(I8x16GeS, kMipsI8x16GeS) \ |
+ V(I8x16GtU, kMipsI8x16GtU) \ |
+ V(I8x16GeU, kMipsI8x16GeU) \ |
+ V(S128And, kMipsS128And) \ |
+ V(S128Or, kMipsS128Or) \ |
+ V(S128Xor, kMipsS128Xor) \ |
+ V(S1x4And, kMipsS128And) \ |
+ V(S1x4Or, kMipsS128Or) \ |
+ V(S1x4Xor, kMipsS128Xor) \ |
+ V(S1x8And, kMipsS128And) \ |
+ V(S1x8Or, kMipsS128Or) \ |
+ V(S1x8Xor, kMipsS128Xor) \ |
+ V(S1x16And, kMipsS128And) \ |
+ V(S1x16Or, kMipsS128Or) \ |
+ V(S1x16Xor, kMipsS128Xor) |
+ |
+#define SIMD_VISIT_ZERO_OP(Name) \ |
+ void InstructionSelector::Visit##Name(Node* node) { \ |
+ MipsOperandGenerator g(this); \ |
+ Emit(kMipsS128Zero, g.DefineSameAsFirst(node)); \ |
+ } |
+SIMD_ZERO_OP_LIST(SIMD_VISIT_ZERO_OP) |
+#undef SIMD_VISIT_ZERO_OP |
-void InstructionSelector::VisitS1x8AllTrue(Node* node) { |
- VisitRR(this, kMipsS1x8AllTrue, node); |
-} |
+#define SIMD_VISIT_SPLAT(Type) \ |
+ void InstructionSelector::Visit##Type##Splat(Node* node) { \ |
+ VisitRR(this, kMips##Type##Splat, node); \ |
+ } |
+SIMD_TYPE_LIST(SIMD_VISIT_SPLAT) |
+#undef SIMD_VISIT_SPLAT |
-void InstructionSelector::VisitS1x16And(Node* node) { |
- VisitRRR(this, kMipsS128And, node); |
-} |
+#define SIMD_VISIT_EXTRACT_LANE(Type) \ |
+ void InstructionSelector::Visit##Type##ExtractLane(Node* node) { \ |
+ VisitRRI(this, kMips##Type##ExtractLane, node); \ |
+ } |
+SIMD_TYPE_LIST(SIMD_VISIT_EXTRACT_LANE) |
+#undef SIMD_VISIT_EXTRACT_LANE |
-void InstructionSelector::VisitS1x16Or(Node* node) { |
- VisitRRR(this, kMipsS128Or, node); |
-} |
+#define SIMD_VISIT_REPLACE_LANE(Type) \ |
+ void InstructionSelector::Visit##Type##ReplaceLane(Node* node) { \ |
+ VisitRRIR(this, kMips##Type##ReplaceLane, node); \ |
+ } |
+SIMD_TYPE_LIST(SIMD_VISIT_REPLACE_LANE) |
+#undef SIMD_VISIT_REPLACE_LANE |
-void InstructionSelector::VisitS1x16Xor(Node* node) { |
- VisitRRR(this, kMipsS128Xor, node); |
-} |
+#define SIMD_VISIT_UNOP(Name, instruction) \ |
+ void InstructionSelector::Visit##Name(Node* node) { \ |
+ VisitRR(this, instruction, node); \ |
+ } |
+SIMD_UNOP_LIST(SIMD_VISIT_UNOP) |
+#undef SIMD_VISIT_UNOP |
-void InstructionSelector::VisitS1x16Not(Node* node) { |
- VisitRR(this, kMipsS128Not, node); |
-} |
+#define SIMD_VISIT_SHIFT_OP(Name) \ |
+ void InstructionSelector::Visit##Name(Node* node) { \ |
+ VisitRRI(this, kMips##Name, node); \ |
+ } |
+SIMD_SHIFT_OP_LIST(SIMD_VISIT_SHIFT_OP) |
+#undef SIMD_VISIT_SHIFT_OP |
-void InstructionSelector::VisitS1x16AnyTrue(Node* node) { |
- VisitRR(this, kMipsS1x16AnyTrue, node); |
-} |
+#define SIMD_VISIT_BINOP(Name, instruction) \ |
+ void InstructionSelector::Visit##Name(Node* node) { \ |
+ VisitRRR(this, instruction, node); \ |
+ } |
+SIMD_BINOP_LIST(SIMD_VISIT_BINOP) |
+#undef SIMD_VISIT_BINOP |
-void InstructionSelector::VisitS1x16AllTrue(Node* node) { |
- VisitRR(this, kMipsS1x16AllTrue, node); |
-} |
+#define SIMD_VISIT_SELECT_OP(format) \ |
+ void InstructionSelector::VisitS##format##Select(Node* node) { \ |
+ VisitRRRR(this, kMipsS##format##Select, node); \ |
+ } |
+SIMD_FORMAT_LIST(SIMD_VISIT_SELECT_OP) |
+#undef SIMD_VISIT_SELECT_OP |
// static |
MachineOperatorBuilder::Flags |