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

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

Issue 1477753002: [turbofan] Implemented the optional Float32RoundTiesEven operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@f32trunc
Patch Set: Merging with the changed codebase 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/arm/instruction-codes-arm.h ('k') | src/compiler/arm64/code-generator-arm64.cc » ('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/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 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { 1143 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) {
1144 VisitRR(this, kArmVrintzF64, node); 1144 VisitRR(this, kArmVrintzF64, node);
1145 } 1145 }
1146 1146
1147 1147
1148 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { 1148 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) {
1149 VisitRR(this, kArmVrintaF64, node); 1149 VisitRR(this, kArmVrintaF64, node);
1150 } 1150 }
1151 1151
1152 1152
1153 void InstructionSelector::VisitFloat32RoundTiesEven(Node* node) {
1154 VisitRR(this, kArmVrintnF32, node);
1155 }
1156
1157
1153 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) { 1158 void InstructionSelector::VisitFloat64RoundTiesEven(Node* node) {
1154 VisitRR(this, kArmVrintnF64, node); 1159 VisitRR(this, kArmVrintnF64, node);
1155 } 1160 }
1156 1161
1157 1162
1158 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments, 1163 void InstructionSelector::EmitPrepareArguments(NodeVector* arguments,
1159 const CallDescriptor* descriptor, 1164 const CallDescriptor* descriptor,
1160 Node* node) { 1165 Node* node) {
1161 ArmOperandGenerator g(this); 1166 ArmOperandGenerator g(this);
1162 1167
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
1580 MachineOperatorBuilder::kInt32DivIsSafe | 1585 MachineOperatorBuilder::kInt32DivIsSafe |
1581 MachineOperatorBuilder::kUint32DivIsSafe; 1586 MachineOperatorBuilder::kUint32DivIsSafe;
1582 if (CpuFeatures::IsSupported(ARMv8)) { 1587 if (CpuFeatures::IsSupported(ARMv8)) {
1583 flags |= MachineOperatorBuilder::kFloat32RoundDown | 1588 flags |= MachineOperatorBuilder::kFloat32RoundDown |
1584 MachineOperatorBuilder::kFloat64RoundDown | 1589 MachineOperatorBuilder::kFloat64RoundDown |
1585 MachineOperatorBuilder::kFloat32RoundUp | 1590 MachineOperatorBuilder::kFloat32RoundUp |
1586 MachineOperatorBuilder::kFloat64RoundUp | 1591 MachineOperatorBuilder::kFloat64RoundUp |
1587 MachineOperatorBuilder::kFloat32RoundTruncate | 1592 MachineOperatorBuilder::kFloat32RoundTruncate |
1588 MachineOperatorBuilder::kFloat64RoundTruncate | 1593 MachineOperatorBuilder::kFloat64RoundTruncate |
1589 MachineOperatorBuilder::kFloat64RoundTiesAway | 1594 MachineOperatorBuilder::kFloat64RoundTiesAway |
1595 MachineOperatorBuilder::kFloat32RoundTiesEven |
1590 MachineOperatorBuilder::kFloat64RoundTiesEven; 1596 MachineOperatorBuilder::kFloat64RoundTiesEven;
1591 } 1597 }
1592 return flags; 1598 return flags;
1593 } 1599 }
1594 1600
1595 } // namespace compiler 1601 } // namespace compiler
1596 } // namespace internal 1602 } // namespace internal
1597 } // namespace v8 1603 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/instruction-codes-arm.h ('k') | src/compiler/arm64/code-generator-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698