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

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

Issue 1435603003: Implemented the RoundInt64ToFloat32 TurboFan operator for x64, arm64, and mips64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/mips64/instruction-codes-mips64.h ('k') | src/compiler/opcodes.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/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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 switch (TruncationModeOf(node->op())) { 585 switch (TruncationModeOf(node->op())) {
586 case TruncationMode::kJavaScript: 586 case TruncationMode::kJavaScript:
587 return VisitRR(this, kArchTruncateDoubleToI, node); 587 return VisitRR(this, kArchTruncateDoubleToI, node);
588 case TruncationMode::kRoundToZero: 588 case TruncationMode::kRoundToZero:
589 return VisitRR(this, kMips64TruncWD, node); 589 return VisitRR(this, kMips64TruncWD, node);
590 } 590 }
591 UNREACHABLE(); 591 UNREACHABLE();
592 } 592 }
593 593
594 594
595 void InstructionSelector::VisitRoundInt64ToFloat32(Node* node) {
596 VisitRR(this, kMips64CvtSL, node);
597 }
598
599
595 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) { 600 void InstructionSelector::VisitRoundInt64ToFloat64(Node* node) {
596 VisitRR(this, kMips64CvtDL, node); 601 VisitRR(this, kMips64CvtDL, node);
597 } 602 }
598 603
599 604
600 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) { 605 void InstructionSelector::VisitBitcastFloat32ToInt32(Node* node) {
601 VisitRR(this, kMips64Float64ExtractLowWord32, node); 606 VisitRR(this, kMips64Float64ExtractLowWord32, node);
602 } 607 }
603 608
604 609
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 MachineOperatorBuilder::kFloat64Max | 1361 MachineOperatorBuilder::kFloat64Max |
1357 MachineOperatorBuilder::kFloat32Min | 1362 MachineOperatorBuilder::kFloat32Min |
1358 MachineOperatorBuilder::kFloat32Max | 1363 MachineOperatorBuilder::kFloat32Max |
1359 MachineOperatorBuilder::kFloat64RoundDown | 1364 MachineOperatorBuilder::kFloat64RoundDown |
1360 MachineOperatorBuilder::kFloat64RoundTruncate; 1365 MachineOperatorBuilder::kFloat64RoundTruncate;
1361 } 1366 }
1362 1367
1363 } // namespace compiler 1368 } // namespace compiler
1364 } // namespace internal 1369 } // namespace internal
1365 } // namespace v8 1370 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/instruction-codes-mips64.h ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698