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

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

Issue 1628133002: [turbofan] Add RoundUint32ToFloat32 operator to Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add arm/arm64 implementation Created 4 years, 10 months 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 <algorithm> 5 #include <algorithm>
6 6
7 #include "src/base/adapters.h" 7 #include "src/base/adapters.h"
8 #include "src/compiler/instruction-selector-impl.h" 8 #include "src/compiler/instruction-selector-impl.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 Emit(kSSEInt64ToFloat32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 1063 Emit(kSSEInt64ToFloat32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
1064 } 1064 }
1065 1065
1066 1066
1067 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { 1067 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) {
1068 X64OperandGenerator g(this); 1068 X64OperandGenerator g(this);
1069 Emit(kSSEInt64ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 1069 Emit(kSSEInt64ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
1070 } 1070 }
1071 1071
1072 1072
1073 void InstructionSelector::VisitRoundUint32ToFloat32(Node* node) {
1074 X64OperandGenerator g(this);
1075 Emit(kSSEUint32ToFloat32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
1076 }
1077
1078
1073 void InstructionSelector::VisitRoundUint64ToFloat32(Node* node) { 1079 void InstructionSelector::VisitRoundUint64ToFloat32(Node* node) {
1074 X64OperandGenerator g(this); 1080 X64OperandGenerator g(this);
1075 InstructionOperand temps[] = {g.TempRegister()}; 1081 InstructionOperand temps[] = {g.TempRegister()};
1076 Emit(kSSEUint64ToFloat32, g.DefineAsRegister(node), g.Use(node->InputAt(0)), 1082 Emit(kSSEUint64ToFloat32, g.DefineAsRegister(node), g.Use(node->InputAt(0)),
1077 arraysize(temps), temps); 1083 arraysize(temps), temps);
1078 } 1084 }
1079 1085
1080 1086
1081 void InstructionSelector::VisitRoundUint64ToFloat64(Node* node) { 1087 void InstructionSelector::VisitRoundUint64ToFloat64(Node* node) {
1082 X64OperandGenerator g(this); 1088 X64OperandGenerator g(this);
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
1813 MachineOperatorBuilder::kFloat64RoundTruncate | 1819 MachineOperatorBuilder::kFloat64RoundTruncate |
1814 MachineOperatorBuilder::kFloat32RoundTiesEven | 1820 MachineOperatorBuilder::kFloat32RoundTiesEven |
1815 MachineOperatorBuilder::kFloat64RoundTiesEven; 1821 MachineOperatorBuilder::kFloat64RoundTiesEven;
1816 } 1822 }
1817 return flags; 1823 return flags;
1818 } 1824 }
1819 1825
1820 } // namespace compiler 1826 } // namespace compiler
1821 } // namespace internal 1827 } // namespace internal
1822 } // namespace v8 1828 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-scheduler-x64.cc ('k') | src/compiler/x87/instruction-selector-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698