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

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

Issue 1485653003: PPC: [turbofan] Implemented the optional Float32RoundDown operator. (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 | « no previous file | 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/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 #include "src/ppc/frames-ppc.h" 9 #include "src/ppc/frames-ppc.h"
10 10
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 void InstructionSelector::VisitFloat32Sqrt(Node* node) { 1131 void InstructionSelector::VisitFloat32Sqrt(Node* node) {
1132 VisitRR(this, kPPC_SqrtDouble, node); 1132 VisitRR(this, kPPC_SqrtDouble, node);
1133 } 1133 }
1134 1134
1135 1135
1136 void InstructionSelector::VisitFloat64Sqrt(Node* node) { 1136 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
1137 VisitRR(this, kPPC_SqrtDouble, node); 1137 VisitRR(this, kPPC_SqrtDouble, node);
1138 } 1138 }
1139 1139
1140 1140
1141 void InstructionSelector::VisitFloat32RoundDown(Node* node) { UNIMPLEMENTED(); } 1141 void InstructionSelector::VisitFloat32RoundDown(Node* node) {
1142 VisitRR(this, kPPC_FloorDouble, node);
1143 }
1142 1144
1143 1145
1144 void InstructionSelector::VisitFloat64RoundDown(Node* node) { 1146 void InstructionSelector::VisitFloat64RoundDown(Node* node) {
1145 VisitRR(this, kPPC_FloorDouble, node); 1147 VisitRR(this, kPPC_FloorDouble, node);
1146 } 1148 }
1147 1149
1148 1150
1149 void InstructionSelector::VisitFloat32RoundUp(Node* node) { UNIMPLEMENTED(); } 1151 void InstructionSelector::VisitFloat32RoundUp(Node* node) { UNIMPLEMENTED(); }
1150 1152
1151 1153
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 return; 1678 return;
1677 } 1679 }
1678 Emit(kPPC_DoubleInsertHighWord32, g.DefineSameAsFirst(node), 1680 Emit(kPPC_DoubleInsertHighWord32, g.DefineSameAsFirst(node),
1679 g.UseRegister(left), g.UseRegister(right)); 1681 g.UseRegister(left), g.UseRegister(right));
1680 } 1682 }
1681 1683
1682 1684
1683 // static 1685 // static
1684 MachineOperatorBuilder::Flags 1686 MachineOperatorBuilder::Flags
1685 InstructionSelector::SupportedMachineOperatorFlags() { 1687 InstructionSelector::SupportedMachineOperatorFlags() {
1686 return MachineOperatorBuilder::kFloat64RoundDown | 1688 return MachineOperatorBuilder::kFloat32RoundDown |
1689 MachineOperatorBuilder::kFloat64RoundDown |
1687 MachineOperatorBuilder::kFloat64RoundUp | 1690 MachineOperatorBuilder::kFloat64RoundUp |
1688 MachineOperatorBuilder::kFloat64RoundTruncate | 1691 MachineOperatorBuilder::kFloat64RoundTruncate |
1689 MachineOperatorBuilder::kFloat64RoundTiesAway | 1692 MachineOperatorBuilder::kFloat64RoundTiesAway |
1690 MachineOperatorBuilder::kWord32Popcnt | 1693 MachineOperatorBuilder::kWord32Popcnt |
1691 MachineOperatorBuilder::kWord64Popcnt; 1694 MachineOperatorBuilder::kWord64Popcnt;
1692 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 1695 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
1693 } 1696 }
1694 1697
1695 } // namespace compiler 1698 } // namespace compiler
1696 } // namespace internal 1699 } // namespace internal
1697 } // namespace v8 1700 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698