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

Side by Side Diff: src/compiler/mips64/instruction-selector-mips64.cc

Issue 2778203002: MIPS[64]: Support for some SIMD operations (4) (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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 2624 matching lines...) Expand 10 before | Expand all | Expand 10 after
2635 addr_reg, g.TempImmediate(0), g.UseRegisterOrImmediateZero(value)); 2635 addr_reg, g.TempImmediate(0), g.UseRegisterOrImmediateZero(value));
2636 } 2636 }
2637 } 2637 }
2638 2638
2639 void InstructionSelector::VisitAtomicExchange(Node* node) { UNIMPLEMENTED(); } 2639 void InstructionSelector::VisitAtomicExchange(Node* node) { UNIMPLEMENTED(); }
2640 2640
2641 void InstructionSelector::VisitAtomicCompareExchange(Node* node) { 2641 void InstructionSelector::VisitAtomicCompareExchange(Node* node) {
2642 UNIMPLEMENTED(); 2642 UNIMPLEMENTED();
2643 } 2643 }
2644 2644
2645 void InstructionSelector::VisitFloat32x4Abs(Node* node) {
2646 VisitRR(this, kMips64Float32x4Abs, node);
2647 }
2648
2649 void InstructionSelector::VisitFloat32x4Neg(Node* node) {
2650 VisitRR(this, kMips64Float32x4Neg, node);
2651 }
2652
2653 void InstructionSelector::VisitFloat32x4RecipApprox(Node* node) {
2654 VisitRR(this, kMips64Float32x4RecipApprox, node);
2655 }
2656
2657 void InstructionSelector::VisitFloat32x4RecipRefine(Node* node) {
2658 VisitRRR(this, kMips64Float32x4RecipRefine, node);
2659 }
2660
2661 void InstructionSelector::VisitFloat32x4RecipSqrtApprox(Node* node) {
2662 VisitRR(this, kMips64Float32x4RecipSqrtApprox, node);
2663 }
2664
2665 void InstructionSelector::VisitFloat32x4RecipSqrtRefine(Node* node) {
2666 VisitRRR(this, kMips64Float32x4RecipSqrtRefine, node);
2667 }
2668
2669 void InstructionSelector::VisitFloat32x4Add(Node* node) {
2670 VisitRRR(this, kMips64Float32x4Add, node);
2671 }
2672
2673 void InstructionSelector::VisitFloat32x4Sub(Node* node) {
2674 VisitRRR(this, kMips64Float32x4Sub, node);
2675 }
2676
2677 void InstructionSelector::VisitFloat32x4Mul(Node* node) {
2678 VisitRRR(this, kMips64Float32x4Mul, node);
2679 }
2680
2681 void InstructionSelector::VisitFloat32x4Max(Node* node) {
2682 VisitRRR(this, kMips64Float32x4Max, node);
2683 }
2684
2685 void InstructionSelector::VisitFloat32x4Min(Node* node) {
2686 VisitRRR(this, kMips64Float32x4Min, node);
2687 }
2688
2689 void InstructionSelector::VisitFloat32x4Equal(Node* node) {
2690 VisitRRR(this, kMips64Float32xEqual, node);
2691 }
2692
2693 void InstructionSelector::VisitFloat32x4NotEqual(Node* node) {
2694 VisitRRR(this, kMips64Float32x4NotEqual, node);
2695 }
2696
2697 void InstructionSelector::VisitFloat32x4LessThan(Node* node) {
2698 VisitRRR(this, kMips64Float32xLessThan, node);
2699 }
2700
2701 void InstructionSelector::VisitFloat32x4LessThanOrEqual(Node* node) {
2702 VisitRRR(this, kMips64Float32xLessThanOrEqual, node);
2703 }
2704
2705 void InstructionSelector::VisitInt32x4FromFloat32x4(Node* node) {
2706 VisitRR(this, kMips64Int32x4FromFloat32x4, node);
2707 }
2708
2709 void InstructionSelector::VisitUint32x4FromFloat32x4(Node* node) {
2710 VisitRR(this, kMips64Uint32x4FromFloat32x4, node);
2711 }
2712
2645 // static 2713 // static
2646 MachineOperatorBuilder::Flags 2714 MachineOperatorBuilder::Flags
2647 InstructionSelector::SupportedMachineOperatorFlags() { 2715 InstructionSelector::SupportedMachineOperatorFlags() {
2648 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags; 2716 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags;
2649 return flags | MachineOperatorBuilder::kWord32Ctz | 2717 return flags | MachineOperatorBuilder::kWord32Ctz |
2650 MachineOperatorBuilder::kWord64Ctz | 2718 MachineOperatorBuilder::kWord64Ctz |
2651 MachineOperatorBuilder::kWord32Popcnt | 2719 MachineOperatorBuilder::kWord32Popcnt |
2652 MachineOperatorBuilder::kWord64Popcnt | 2720 MachineOperatorBuilder::kWord64Popcnt |
2653 MachineOperatorBuilder::kWord32ShiftIsSafe | 2721 MachineOperatorBuilder::kWord32ShiftIsSafe |
2654 MachineOperatorBuilder::kInt32DivIsSafe | 2722 MachineOperatorBuilder::kInt32DivIsSafe |
(...skipping 19 matching lines...) Expand all
2674 } else { 2742 } else {
2675 DCHECK(kArchVariant == kMips64r2); 2743 DCHECK(kArchVariant == kMips64r2);
2676 return MachineOperatorBuilder::AlignmentRequirements:: 2744 return MachineOperatorBuilder::AlignmentRequirements::
2677 NoUnalignedAccessSupport(); 2745 NoUnalignedAccessSupport();
2678 } 2746 }
2679 } 2747 }
2680 2748
2681 } // namespace compiler 2749 } // namespace compiler
2682 } // namespace internal 2750 } // namespace internal
2683 } // namespace v8 2751 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698