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

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

Issue 1589363002: [turbofan] Add the RoundInt32ToFloat32 operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 break; 1039 break;
1040 } 1040 }
1041 default: 1041 default:
1042 break; 1042 break;
1043 } 1043 }
1044 } 1044 }
1045 Emit(kX64Movl, g.DefineAsRegister(node), g.Use(value)); 1045 Emit(kX64Movl, g.DefineAsRegister(node), g.Use(value));
1046 } 1046 }
1047 1047
1048 1048
1049 void InstructionSelector::VisitRoundInt32ToFloat32(Node* node) {
1050 X64OperandGenerator g(this);
1051 Emit(kSSEInt32ToFloat32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
1052 }
1053
1054
1049 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) { 1055 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) {
1050 X64OperandGenerator g(this); 1056 X64OperandGenerator g(this);
1051 Emit(kSSEInt64ToFloat32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 1057 Emit(kSSEInt64ToFloat32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
1052 } 1058 }
1053 1059
1054 1060
1055 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { 1061 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) {
1056 X64OperandGenerator g(this); 1062 X64OperandGenerator g(this);
1057 Emit(kSSEInt64ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 1063 Emit(kSSEInt64ToFloat64, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
1058 } 1064 }
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
1801 MachineOperatorBuilder::kFloat64RoundTruncate | 1807 MachineOperatorBuilder::kFloat64RoundTruncate |
1802 MachineOperatorBuilder::kFloat32RoundTiesEven | 1808 MachineOperatorBuilder::kFloat32RoundTiesEven |
1803 MachineOperatorBuilder::kFloat64RoundTiesEven; 1809 MachineOperatorBuilder::kFloat64RoundTiesEven;
1804 } 1810 }
1805 return flags; 1811 return flags;
1806 } 1812 }
1807 1813
1808 } // namespace compiler 1814 } // namespace compiler
1809 } // namespace internal 1815 } // namespace internal
1810 } // namespace v8 1816 } // 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