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

Side by Side Diff: src/compiler/ppc/instruction-selector-ppc.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/opcodes.h ('k') | src/compiler/raw-machine-assembler.h » ('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 #include "src/ppc/frames-ppc.h" 9 #include "src/ppc/frames-ppc.h"
10 10
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 1064
1065 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) { 1065 void InstructionSelector::VisitChangeFloat64ToInt32(Node* node) {
1066 VisitRR(this, kPPC_DoubleToInt32, node); 1066 VisitRR(this, kPPC_DoubleToInt32, node);
1067 } 1067 }
1068 1068
1069 1069
1070 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { 1070 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
1071 VisitRR(this, kPPC_DoubleToUint32, node); 1071 VisitRR(this, kPPC_DoubleToUint32, node);
1072 } 1072 }
1073 1073
1074 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) {
1075 VisitRR(this, kPPC_DoubleToUint32, node);
1076 }
1074 1077
1075 #if V8_TARGET_ARCH_PPC64 1078 #if V8_TARGET_ARCH_PPC64
1076 void InstructionSelector::VisitTryTruncateFloat32ToInt64(Node* node) { 1079 void InstructionSelector::VisitTryTruncateFloat32ToInt64(Node* node) {
1077 VisitTryTruncateDouble(this, kPPC_DoubleToInt64, node); 1080 VisitTryTruncateDouble(this, kPPC_DoubleToInt64, node);
1078 } 1081 }
1079 1082
1080 1083
1081 void InstructionSelector::VisitTryTruncateFloat64ToInt64(Node* node) { 1084 void InstructionSelector::VisitTryTruncateFloat64ToInt64(Node* node) {
1082 VisitTryTruncateDouble(this, kPPC_DoubleToInt64, node); 1085 VisitTryTruncateDouble(this, kPPC_DoubleToInt64, node);
1083 } 1086 }
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
1906 MachineOperatorBuilder::kFloat64RoundTruncate | 1909 MachineOperatorBuilder::kFloat64RoundTruncate |
1907 MachineOperatorBuilder::kFloat64RoundTiesAway | 1910 MachineOperatorBuilder::kFloat64RoundTiesAway |
1908 MachineOperatorBuilder::kWord32Popcnt | 1911 MachineOperatorBuilder::kWord32Popcnt |
1909 MachineOperatorBuilder::kWord64Popcnt; 1912 MachineOperatorBuilder::kWord64Popcnt;
1910 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f. 1913 // We omit kWord32ShiftIsSafe as s[rl]w use 0x3f as a mask rather than 0x1f.
1911 } 1914 }
1912 1915
1913 } // namespace compiler 1916 } // namespace compiler
1914 } // namespace internal 1917 } // namespace internal
1915 } // namespace v8 1918 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/raw-machine-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698