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

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

Issue 1468303005: [turbofan] Implemented the optional Float32RoundTruncate operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@f32roundup
Patch Set: Apparently std::nearbyint does not exist on all platforms. 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/opcodes.h ('k') | src/compiler/raw-machine-assembler.h » ('j') | 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 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 1137
1138 1138
1139 void InstructionSelector::VisitFloat32RoundUp(Node* node) { UNIMPLEMENTED(); } 1139 void InstructionSelector::VisitFloat32RoundUp(Node* node) { UNIMPLEMENTED(); }
1140 1140
1141 1141
1142 void InstructionSelector::VisitFloat64RoundUp(Node* node) { 1142 void InstructionSelector::VisitFloat64RoundUp(Node* node) {
1143 VisitRR(this, kPPC_CeilDouble, node); 1143 VisitRR(this, kPPC_CeilDouble, node);
1144 } 1144 }
1145 1145
1146 1146
1147 void InstructionSelector::VisitFloat32RoundTruncate(Node* node) {
1148 UNREACHABLE();
1149 }
1150
1151
1147 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { 1152 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) {
1148 VisitRR(this, kPPC_TruncateDouble, node); 1153 VisitRR(this, kPPC_TruncateDouble, node);
1149 } 1154 }
1150 1155
1151 1156
1152 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { 1157 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) {
1153 VisitRR(this, kPPC_RoundDouble, node); 1158 VisitRR(this, kPPC_RoundDouble, node);
1154 } 1159 }
1155 1160
1156 1161
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
1668 MachineOperatorBuilder::kFloat64RoundTruncate | 1673 MachineOperatorBuilder::kFloat64RoundTruncate |
1669 MachineOperatorBuilder::kFloat64RoundTiesAway | 1674 MachineOperatorBuilder::kFloat64RoundTiesAway |
1670 MachineOperatorBuilder::kWord32Popcnt | 1675 MachineOperatorBuilder::kWord32Popcnt |
1671 MachineOperatorBuilder::kWord64Popcnt; 1676 MachineOperatorBuilder::kWord64Popcnt;
1672 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 1677 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
1673 } 1678 }
1674 1679
1675 } // namespace compiler 1680 } // namespace compiler
1676 } // namespace internal 1681 } // namespace internal
1677 } // namespace v8 1682 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/raw-machine-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698