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

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

Issue 1444583002: [turbofan] Added the optional Float64RoundUp operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Removed the implementation of VisitFloat32RoundUp on mips32 Created 5 years, 1 month 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 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 void InstructionSelector::VisitFloat64Sqrt(Node* node) { 1111 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
1112 VisitRR(this, kPPC_SqrtDouble, node); 1112 VisitRR(this, kPPC_SqrtDouble, node);
1113 } 1113 }
1114 1114
1115 1115
1116 void InstructionSelector::VisitFloat64RoundDown(Node* node) { 1116 void InstructionSelector::VisitFloat64RoundDown(Node* node) {
1117 VisitRR(this, kPPC_FloorDouble, node); 1117 VisitRR(this, kPPC_FloorDouble, node);
1118 } 1118 }
1119 1119
1120 1120
1121 void InstructionSelector::VisitFloat64RoundUp(Node* node) {
1122 VisitRR(this, kPPC_CeilDouble, node);
1123 }
1124
1125
1121 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { 1126 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) {
1122 VisitRR(this, kPPC_TruncateDouble, node); 1127 VisitRR(this, kPPC_TruncateDouble, node);
1123 } 1128 }
1124 1129
1125 1130
1126 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { 1131 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) {
1127 VisitRR(this, kPPC_RoundDouble, node); 1132 VisitRR(this, kPPC_RoundDouble, node);
1128 } 1133 }
1129 1134
1130 1135
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1626 } 1631 }
1627 Emit(kPPC_DoubleInsertHighWord32, g.DefineSameAsFirst(node), 1632 Emit(kPPC_DoubleInsertHighWord32, g.DefineSameAsFirst(node),
1628 g.UseRegister(left), g.UseRegister(right)); 1633 g.UseRegister(left), g.UseRegister(right));
1629 } 1634 }
1630 1635
1631 1636
1632 // static 1637 // static
1633 MachineOperatorBuilder::Flags 1638 MachineOperatorBuilder::Flags
1634 InstructionSelector::SupportedMachineOperatorFlags() { 1639 InstructionSelector::SupportedMachineOperatorFlags() {
1635 return MachineOperatorBuilder::kFloat64RoundDown | 1640 return MachineOperatorBuilder::kFloat64RoundDown |
1641 MachineOperatorBuilder::kFloat64RoundUp |
1636 MachineOperatorBuilder::kFloat64RoundTruncate | 1642 MachineOperatorBuilder::kFloat64RoundTruncate |
1637 MachineOperatorBuilder::kFloat64RoundTiesAway | 1643 MachineOperatorBuilder::kFloat64RoundTiesAway |
1638 MachineOperatorBuilder::kWord32Popcnt | 1644 MachineOperatorBuilder::kWord32Popcnt |
1639 MachineOperatorBuilder::kWord64Popcnt; 1645 MachineOperatorBuilder::kWord64Popcnt;
1640 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 1646 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
1641 } 1647 }
1642 1648
1643 } // namespace compiler 1649 } // namespace compiler
1644 } // namespace internal 1650 } // namespace internal
1645 } // namespace v8 1651 } // 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