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

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

Issue 1480213003: PPC: [turbofan] Implemented the optional Float32RoundTruncate operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@patch05
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 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 VisitRR(this, kPPC_CeilDouble, node); 1152 VisitRR(this, kPPC_CeilDouble, node);
1153 } 1153 }
1154 1154
1155 1155
1156 void InstructionSelector::VisitFloat64RoundUp(Node* node) { 1156 void InstructionSelector::VisitFloat64RoundUp(Node* node) {
1157 VisitRR(this, kPPC_CeilDouble, node); 1157 VisitRR(this, kPPC_CeilDouble, node);
1158 } 1158 }
1159 1159
1160 1160
1161 void InstructionSelector::VisitFloat32RoundTruncate(Node* node) { 1161 void InstructionSelector::VisitFloat32RoundTruncate(Node* node) {
1162 UNREACHABLE(); 1162 VisitRR(this, kPPC_TruncateDouble, node);
1163 } 1163 }
1164 1164
1165 1165
1166 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { 1166 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) {
1167 VisitRR(this, kPPC_TruncateDouble, node); 1167 VisitRR(this, kPPC_TruncateDouble, node);
1168 } 1168 }
1169 1169
1170 1170
1171 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { 1171 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) {
1172 VisitRR(this, kPPC_RoundDouble, node); 1172 VisitRR(this, kPPC_RoundDouble, node);
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 } 1684 }
1685 1685
1686 1686
1687 // static 1687 // static
1688 MachineOperatorBuilder::Flags 1688 MachineOperatorBuilder::Flags
1689 InstructionSelector::SupportedMachineOperatorFlags() { 1689 InstructionSelector::SupportedMachineOperatorFlags() {
1690 return MachineOperatorBuilder::kFloat32RoundDown | 1690 return MachineOperatorBuilder::kFloat32RoundDown |
1691 MachineOperatorBuilder::kFloat64RoundDown | 1691 MachineOperatorBuilder::kFloat64RoundDown |
1692 MachineOperatorBuilder::kFloat32RoundUp | 1692 MachineOperatorBuilder::kFloat32RoundUp |
1693 MachineOperatorBuilder::kFloat64RoundUp | 1693 MachineOperatorBuilder::kFloat64RoundUp |
1694 MachineOperatorBuilder::kFloat32RoundTruncate |
1694 MachineOperatorBuilder::kFloat64RoundTruncate | 1695 MachineOperatorBuilder::kFloat64RoundTruncate |
1695 MachineOperatorBuilder::kFloat64RoundTiesAway | 1696 MachineOperatorBuilder::kFloat64RoundTiesAway |
1696 MachineOperatorBuilder::kWord32Popcnt | 1697 MachineOperatorBuilder::kWord32Popcnt |
1697 MachineOperatorBuilder::kWord64Popcnt; 1698 MachineOperatorBuilder::kWord64Popcnt;
1698 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 1699 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
1699 } 1700 }
1700 1701
1701 } // namespace compiler 1702 } // namespace compiler
1702 } // namespace internal 1703 } // namespace internal
1703 } // namespace v8 1704 } // 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