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

Side by Side Diff: src/compiler/arm64/instruction-selector-arm64.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
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/compiler/instruction-selector-impl.h" 5 #include "src/compiler/instruction-selector-impl.h"
6 #include "src/compiler/node-matchers.h" 6 #include "src/compiler/node-matchers.h"
7 #include "src/compiler/node-properties.h" 7 #include "src/compiler/node-properties.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1486 void InstructionSelector::VisitFloat32RoundUp(Node* node) { 1486 void InstructionSelector::VisitFloat32RoundUp(Node* node) {
1487 VisitRR(this, kArm64Float32RoundUp, node); 1487 VisitRR(this, kArm64Float32RoundUp, node);
1488 } 1488 }
1489 1489
1490 1490
1491 void InstructionSelector::VisitFloat64RoundUp(Node* node) { 1491 void InstructionSelector::VisitFloat64RoundUp(Node* node) {
1492 VisitRR(this, kArm64Float64RoundUp, node); 1492 VisitRR(this, kArm64Float64RoundUp, node);
1493 } 1493 }
1494 1494
1495 1495
1496 void InstructionSelector::VisitFloat32RoundTruncate(Node* node) {
1497 VisitRR(this, kArm64Float32RoundTruncate, node);
1498 }
1499
1500
1496 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) { 1501 void InstructionSelector::VisitFloat64RoundTruncate(Node* node) {
1497 VisitRR(this, kArm64Float64RoundTruncate, node); 1502 VisitRR(this, kArm64Float64RoundTruncate, node);
1498 } 1503 }
1499 1504
1500 1505
1501 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) { 1506 void InstructionSelector::VisitFloat64RoundTiesAway(Node* node) {
1502 VisitRR(this, kArm64Float64RoundTiesAway, node); 1507 VisitRR(this, kArm64Float64RoundTiesAway, node);
1503 } 1508 }
1504 1509
1505 1510
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
2073 MachineOperatorBuilder::Flags 2078 MachineOperatorBuilder::Flags
2074 InstructionSelector::SupportedMachineOperatorFlags() { 2079 InstructionSelector::SupportedMachineOperatorFlags() {
2075 return MachineOperatorBuilder::kFloat32Max | 2080 return MachineOperatorBuilder::kFloat32Max |
2076 MachineOperatorBuilder::kFloat32Min | 2081 MachineOperatorBuilder::kFloat32Min |
2077 MachineOperatorBuilder::kFloat32RoundDown | 2082 MachineOperatorBuilder::kFloat32RoundDown |
2078 MachineOperatorBuilder::kFloat64Max | 2083 MachineOperatorBuilder::kFloat64Max |
2079 MachineOperatorBuilder::kFloat64Min | 2084 MachineOperatorBuilder::kFloat64Min |
2080 MachineOperatorBuilder::kFloat64RoundDown | 2085 MachineOperatorBuilder::kFloat64RoundDown |
2081 MachineOperatorBuilder::kFloat32RoundUp | 2086 MachineOperatorBuilder::kFloat32RoundUp |
2082 MachineOperatorBuilder::kFloat64RoundUp | 2087 MachineOperatorBuilder::kFloat64RoundUp |
2088 MachineOperatorBuilder::kFloat32RoundTruncate |
2083 MachineOperatorBuilder::kFloat64RoundTruncate | 2089 MachineOperatorBuilder::kFloat64RoundTruncate |
2084 MachineOperatorBuilder::kFloat64RoundTiesAway | 2090 MachineOperatorBuilder::kFloat64RoundTiesAway |
2085 MachineOperatorBuilder::kFloat64RoundTiesEven | 2091 MachineOperatorBuilder::kFloat64RoundTiesEven |
2086 MachineOperatorBuilder::kWord32ShiftIsSafe | 2092 MachineOperatorBuilder::kWord32ShiftIsSafe |
2087 MachineOperatorBuilder::kInt32DivIsSafe | 2093 MachineOperatorBuilder::kInt32DivIsSafe |
2088 MachineOperatorBuilder::kUint32DivIsSafe; 2094 MachineOperatorBuilder::kUint32DivIsSafe;
2089 } 2095 }
2090 2096
2091 } // namespace compiler 2097 } // namespace compiler
2092 } // namespace internal 2098 } // namespace internal
2093 } // namespace v8 2099 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/instruction-codes-arm64.h ('k') | src/compiler/ia32/instruction-selector-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698