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

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

Issue 1477043004: MIPS: [turbofan] Implement Float32Round(TiesEven|RoundUp|RoundDown|Truncate). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « src/compiler/mips64/instruction-codes-mips64.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 void InstructionSelector::VisitFloat32Sqrt(Node* node) { 974 void InstructionSelector::VisitFloat32Sqrt(Node* node) {
975 VisitRR(this, kMips64SqrtS, node); 975 VisitRR(this, kMips64SqrtS, node);
976 } 976 }
977 977
978 978
979 void InstructionSelector::VisitFloat64Sqrt(Node* node) { 979 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
980 VisitRR(this, kMips64SqrtD, node); 980 VisitRR(this, kMips64SqrtD, node);
981 } 981 }
982 982
983 983
984 void InstructionSelector::VisitFloat32RoundDown(Node* node) { UNIMPLEMENTED(); } 984 void InstructionSelector::VisitFloat32RoundDown(Node* node) {
985 VisitRR(this, kMips64Float32RoundDown, node);
986 }
985 987
986 988
987 void InstructionSelector::VisitFloat64RoundDown(Node* node) { 989 void InstructionSelector::VisitFloat64RoundDown(Node* node) {
988 VisitRR(this, kMips64Float64RoundDown, node); 990 VisitRR(this, kMips64Float64RoundDown, node);
989 } 991 }
990 992
991 993
992 void InstructionSelector::VisitFloat32RoundUp(Node* node) { UNIMPLEMENTED(); } 994 void InstructionSelector::VisitFloat32RoundUp(Node* node) {
995 VisitRR(this, kMips64Float32RoundUp, node);
996 }
993 997
994 998
995 void InstructionSelector::VisitFloat64RoundUp(Node* node) { 999 void InstructionSelector::VisitFloat64RoundUp(Node* node) {
996 VisitRR(this, kMips64Float64RoundUp, node); 1000 VisitRR(this, kMips64Float64RoundUp, node);
997 } 1001 }
998 1002
999 1003
1000 void InstructionSelector::VisitFloat32RoundTruncate(Node* node) { 1004 void InstructionSelector::VisitFloat32RoundTruncate(Node* node) {
1001 UNREACHABLE(); 1005 VisitRR(this, kMips64Float32RoundTruncate, node);
1002 } 1006 }
1003 1007
1004 1008
1005 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { 1009 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) {
1006 VisitRR(this, kMips64Float64RoundTruncate, node); 1010 VisitRR(this, kMips64Float64RoundTruncate, node);
1007 } 1011 }
1008 1012
1009 1013
1010 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { 1014 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) {
1011 UNREACHABLE(); 1015 UNREACHABLE();
1012 } 1016 }
1013 1017
1014 1018
1015 void InstructionSelector::VisitFloat32RoundTiesEven(Node* node) { 1019 void InstructionSelector::VisitFloat32RoundTiesEven(Node* node) {
1016 UNREACHABLE(); 1020 VisitRR(this, kMips64Float32RoundTiesEven, node);
1017 } 1021 }
1018 1022
1019 1023
1020 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { 1024 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) {
1021 VisitRR(this, kMips64Float64RoundTiesEven, node); 1025 VisitRR(this, kMips64Float64RoundTiesEven, node);
1022 } 1026 }
1023 1027
1024 1028
1025 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, 1029 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments,
1026 const CallDescriptor* descriptor, 1030 const CallDescriptor* descriptor,
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 1599
1596 1600
1597 // static 1601 // static
1598 MachineOperatorBuilder::Flags 1602 MachineOperatorBuilder::Flags
1599 InstructionSelector::SupportedMachineOperatorFlags() { 1603 InstructionSelector::SupportedMachineOperatorFlags() {
1600 return MachineOperatorBuilder::kFloat64Min | 1604 return MachineOperatorBuilder::kFloat64Min |
1601 MachineOperatorBuilder::kFloat64Max | 1605 MachineOperatorBuilder::kFloat64Max |
1602 MachineOperatorBuilder::kFloat32Min | 1606 MachineOperatorBuilder::kFloat32Min |
1603 MachineOperatorBuilder::kFloat32Max | 1607 MachineOperatorBuilder::kFloat32Max |
1604 MachineOperatorBuilder::kFloat64RoundDown | 1608 MachineOperatorBuilder::kFloat64RoundDown |
1609 MachineOperatorBuilder::kFloat32RoundDown |
1605 MachineOperatorBuilder::kFloat64RoundUp | 1610 MachineOperatorBuilder::kFloat64RoundUp |
1611 MachineOperatorBuilder::kFloat32RoundUp |
1606 MachineOperatorBuilder::kFloat64RoundTruncate | 1612 MachineOperatorBuilder::kFloat64RoundTruncate |
1607 MachineOperatorBuilder::kFloat64RoundTiesEven; 1613 MachineOperatorBuilder::kFloat32RoundTruncate |
1614 MachineOperatorBuilder::kFloat64RoundTiesEven |
1615 MachineOperatorBuilder::kFloat32RoundTiesEven;
1608 } 1616 }
1609 1617
1610 } // namespace compiler 1618 } // namespace compiler
1611 } // namespace internal 1619 } // namespace internal
1612 } // namespace v8 1620 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/instruction-codes-mips64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698