OLD | NEW |
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 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 void InstructionSelector::VisitFloat32RoundDown(Node* node) { | 1118 void InstructionSelector::VisitFloat32RoundDown(Node* node) { |
1119 VisitRR(this, kArmVrintmF32, node); | 1119 VisitRR(this, kArmVrintmF32, node); |
1120 } | 1120 } |
1121 | 1121 |
1122 | 1122 |
1123 void InstructionSelector::VisitFloat64RoundDown(Node* node) { | 1123 void InstructionSelector::VisitFloat64RoundDown(Node* node) { |
1124 VisitRR(this, kArmVrintmF64, node); | 1124 VisitRR(this, kArmVrintmF64, node); |
1125 } | 1125 } |
1126 | 1126 |
1127 | 1127 |
| 1128 void InstructionSelector::VisitFloat32RoundUp(Node* node) { |
| 1129 VisitRR(this, kArmVrintpF32, node); |
| 1130 } |
| 1131 |
| 1132 |
1128 void InstructionSelector::VisitFloat64RoundUp(Node* node) { | 1133 void InstructionSelector::VisitFloat64RoundUp(Node* node) { |
1129 VisitRR(this, kArmVrintpF64, node); | 1134 VisitRR(this, kArmVrintpF64, node); |
1130 } | 1135 } |
1131 | 1136 |
1132 | 1137 |
1133 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { | 1138 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { |
1134 VisitRR(this, kArmVrintzF64, node); | 1139 VisitRR(this, kArmVrintzF64, node); |
1135 } | 1140 } |
1136 | 1141 |
1137 | 1142 |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1563 } | 1568 } |
1564 | 1569 |
1565 | 1570 |
1566 // static | 1571 // static |
1567 MachineOperatorBuilder::Flags | 1572 MachineOperatorBuilder::Flags |
1568 InstructionSelector::SupportedMachineOperatorFlags() { | 1573 InstructionSelector::SupportedMachineOperatorFlags() { |
1569 MachineOperatorBuilder::Flags flags = | 1574 MachineOperatorBuilder::Flags flags = |
1570 MachineOperatorBuilder::kInt32DivIsSafe | | 1575 MachineOperatorBuilder::kInt32DivIsSafe | |
1571 MachineOperatorBuilder::kUint32DivIsSafe; | 1576 MachineOperatorBuilder::kUint32DivIsSafe; |
1572 if (CpuFeatures::IsSupported(ARMv8)) { | 1577 if (CpuFeatures::IsSupported(ARMv8)) { |
1573 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1578 flags |= MachineOperatorBuilder::kFloat32RoundDown | |
| 1579 MachineOperatorBuilder::kFloat64RoundDown | |
| 1580 MachineOperatorBuilder::kFloat32RoundUp | |
1574 MachineOperatorBuilder::kFloat64RoundUp | | 1581 MachineOperatorBuilder::kFloat64RoundUp | |
1575 MachineOperatorBuilder::kFloat64RoundTruncate | | 1582 MachineOperatorBuilder::kFloat64RoundTruncate | |
1576 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1583 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1577 MachineOperatorBuilder::kFloat64RoundTiesEven | | 1584 MachineOperatorBuilder::kFloat64RoundTiesEven; |
1578 MachineOperatorBuilder::kFloat32RoundDown; | |
1579 } | 1585 } |
1580 return flags; | 1586 return flags; |
1581 } | 1587 } |
1582 | 1588 |
1583 } // namespace compiler | 1589 } // namespace compiler |
1584 } // namespace internal | 1590 } // namespace internal |
1585 } // namespace v8 | 1591 } // namespace v8 |
OLD | NEW |