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

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

Issue 1697953002: X87: [turbofan] Add TruncateFloat32ToUint32 operator to Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « src/compiler/x87/instruction-codes-x87.h ('k') | no next file » | 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/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 } 684 }
685 685
686 686
687 void InstructionSelector::VisitTruncateFloat32ToInt32(Node* node) { 687 void InstructionSelector::VisitTruncateFloat32ToInt32(Node* node) {
688 X87OperandGenerator g(this); 688 X87OperandGenerator g(this);
689 Emit(kX87Float32ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 689 Emit(kX87Float32ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
690 } 690 }
691 691
692 692
693 void InstructionSelector::VisitTruncateFloat32ToUint32(Node* node) { 693 void InstructionSelector::VisitTruncateFloat32ToUint32(Node* node) {
694 UNIMPLEMENTED(); 694 X87OperandGenerator g(this);
695 Emit(kX87Float32ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
695 } 696 }
696 697
697 698
698 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { 699 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) {
699 X87OperandGenerator g(this); 700 X87OperandGenerator g(this);
700 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 701 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
701 } 702 }
702 703
703 704
704 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { 705 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
1362 MachineOperatorBuilder::kFloat32RoundTruncate | 1363 MachineOperatorBuilder::kFloat32RoundTruncate |
1363 MachineOperatorBuilder::kFloat64RoundTruncate | 1364 MachineOperatorBuilder::kFloat64RoundTruncate |
1364 MachineOperatorBuilder::kFloat32RoundTiesEven | 1365 MachineOperatorBuilder::kFloat32RoundTiesEven |
1365 MachineOperatorBuilder::kFloat64RoundTiesEven; 1366 MachineOperatorBuilder::kFloat64RoundTiesEven;
1366 return flags; 1367 return flags;
1367 } 1368 }
1368 1369
1369 } // namespace compiler 1370 } // namespace compiler
1370 } // namespace internal 1371 } // namespace internal
1371 } // namespace v8 1372 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x87/instruction-codes-x87.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698