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

Side by Side Diff: src/compiler/mips/instruction-selector-mips.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/machine-operator.cc ('k') | src/compiler/mips64/instruction-selector-mips64.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/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 } 619 }
620 } 620 }
621 VisitRR(this, kMipsTruncWD, node); 621 VisitRR(this, kMipsTruncWD, node);
622 } 622 }
623 623
624 624
625 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) { 625 void InstructionSelector::VisitChangeFloat64ToUint32(Node* node) {
626 VisitRR(this, kMipsTruncUwD, node); 626 VisitRR(this, kMipsTruncUwD, node);
627 } 627 }
628 628
629 void InstructionSelector::VisitTruncateFloat64ToUint32(Node* node) {
630 VisitRR(this, kMipsTruncUwD, node);
631 }
629 632
630 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) { 633 void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) {
631 MipsOperandGenerator g(this); 634 MipsOperandGenerator g(this);
632 Node* value = node->InputAt(0); 635 Node* value = node->InputAt(0);
633 // Match TruncateFloat64ToFloat32(ChangeInt32ToFloat64) to corresponding 636 // Match TruncateFloat64ToFloat32(ChangeInt32ToFloat64) to corresponding
634 // instruction. 637 // instruction.
635 if (CanCover(node, value) && 638 if (CanCover(node, value) &&
636 value->opcode() == IrOpcode::kChangeInt32ToFloat64) { 639 value->opcode() == IrOpcode::kChangeInt32ToFloat64) {
637 Emit(kMipsCvtSW, g.DefineAsRegister(node), 640 Emit(kMipsCvtSW, g.DefineAsRegister(node),
638 g.UseRegister(value->InputAt(0))); 641 g.UseRegister(value->InputAt(0)));
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 MachineOperatorBuilder::kFloat32Max | 1401 MachineOperatorBuilder::kFloat32Max |
1399 MachineOperatorBuilder::kFloat32RoundDown | 1402 MachineOperatorBuilder::kFloat32RoundDown |
1400 MachineOperatorBuilder::kFloat32RoundUp | 1403 MachineOperatorBuilder::kFloat32RoundUp |
1401 MachineOperatorBuilder::kFloat32RoundTruncate | 1404 MachineOperatorBuilder::kFloat32RoundTruncate |
1402 MachineOperatorBuilder::kFloat32RoundTiesEven; 1405 MachineOperatorBuilder::kFloat32RoundTiesEven;
1403 } 1406 }
1404 1407
1405 } // namespace compiler 1408 } // namespace compiler
1406 } // namespace internal 1409 } // namespace internal
1407 } // namespace v8 1410 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/mips64/instruction-selector-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698