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

Side by Side Diff: src/compiler/x64/instruction-selector-x64.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/code-generator-x64.cc ('k') | src/compiler/x87/instruction-selector-x87.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 <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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 888
889 889
890 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { 890 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) {
891 X64OperandGenerator g(this); 891 X64OperandGenerator g(this);
892 Emit(kSSEFloat64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 892 Emit(kSSEFloat64ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
893 } 893 }
894 894
895 895
896 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { 896 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
897 X64OperandGenerator g(this); 897 X64OperandGenerator g(this);
898 Emit(kSSEFloat64ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 898 Emit(kSSEFloat64ToUint32 | MiscField::encode(1), g.DefineAsRegister(node),
899 g.Use(node->InputAt(0)));
899 } 900 }
900 901
902 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) {
903 X64OperandGenerator g(this);
904 Emit(kSSEFloat64ToUint32 | MiscField::encode(0), g.DefineAsRegister(node),
905 g.Use(node->InputAt(0)));
906 }
901 907
902 void InstructionSelector::VisitTruncateFloat32ToInt32(Node* node) { 908 void InstructionSelector::VisitTruncateFloat32ToInt32(Node* node) {
903 X64OperandGenerator g(this); 909 X64OperandGenerator g(this);
904 Emit(kSSEFloat32ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 910 Emit(kSSEFloat32ToInt32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
905 } 911 }
906 912
907 913
908 void InstructionSelector::VisitTruncateFloat32ToUint32(Node* node) { 914 void InstructionSelector::VisitTruncateFloat32ToUint32(Node* node) {
909 X64OperandGenerator g(this); 915 X64OperandGenerator g(this);
910 Emit(kSSEFloat32ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 916 Emit(kSSEFloat32ToUint32, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1972 MachineOperatorBuilder::kFloat64RoundTruncate | 1978 MachineOperatorBuilder::kFloat64RoundTruncate |
1973 MachineOperatorBuilder::kFloat32RoundTiesEven | 1979 MachineOperatorBuilder::kFloat32RoundTiesEven |
1974 MachineOperatorBuilder::kFloat64RoundTiesEven; 1980 MachineOperatorBuilder::kFloat64RoundTiesEven;
1975 } 1981 }
1976 return flags; 1982 return flags;
1977 } 1983 }
1978 1984
1979 } // namespace compiler 1985 } // namespace compiler
1980 } // namespace internal 1986 } // namespace internal
1981 } // namespace v8 1987 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/code-generator-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