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

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

Issue 1843983002: [wasm] Fixed float-to-int conversion tests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/x64/instruction-selector-x64.cc ('k') | test/cctest/wasm/test-run-wasm.cc » ('j') | 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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 X87OperandGenerator g(this); 829 X87OperandGenerator g(this);
830 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 830 Emit(kX87Float64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
831 } 831 }
832 832
833 833
834 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { 834 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
835 X87OperandGenerator g(this); 835 X87OperandGenerator g(this);
836 Emit(kX87Float64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 836 Emit(kX87Float64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
837 } 837 }
838 838
839 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) {
840 X87OperandGenerator g(this);
841 Emit(kX87Float64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
842 }
839 843
840 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { 844 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) {
841 X87OperandGenerator g(this); 845 X87OperandGenerator g(this);
842 Emit(kX87Float64ToFloat32, g.DefineAsFixed(node, stX_0), 846 Emit(kX87Float64ToFloat32, g.DefineAsFixed(node, stX_0),
843 g.Use(node->InputAt(0))); 847 g.Use(node->InputAt(0)));
844 } 848 }
845 849
846 850
847 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) { 851 void InstructionSelector::VisitTruncateFloat64ToInt32(Node* node) {
848 X87OperandGenerator g(this); 852 X87OperandGenerator g(this);
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 MachineOperatorBuilder::kFloat32RoundTruncate | 1586 MachineOperatorBuilder::kFloat32RoundTruncate |
1583 MachineOperatorBuilder::kFloat64RoundTruncate | 1587 MachineOperatorBuilder::kFloat64RoundTruncate |
1584 MachineOperatorBuilder::kFloat32RoundTiesEven | 1588 MachineOperatorBuilder::kFloat32RoundTiesEven |
1585 MachineOperatorBuilder::kFloat64RoundTiesEven; 1589 MachineOperatorBuilder::kFloat64RoundTiesEven;
1586 return flags; 1590 return flags;
1587 } 1591 }
1588 1592
1589 } // namespace compiler 1593 } // namespace compiler
1590 } // namespace internal 1594 } // namespace internal
1591 } // namespace v8 1595 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | test/cctest/wasm/test-run-wasm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698