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

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

Issue 1073463003: MIPS: [turbofan] Add new Float32Abs and Float64Abs operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add missing unittest. Created 5 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/mips64/instruction-codes-mips64.h ('k') | src/mips/assembler-mips.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/bits.h" 5 #include "src/base/bits.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 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 605
606 void InstructionSelector::VisitFloat64Max(Node* node) { UNREACHABLE(); } 606 void InstructionSelector::VisitFloat64Max(Node* node) { UNREACHABLE(); }
607 607
608 608
609 void InstructionSelector::VisitFloat32Min(Node* node) { UNREACHABLE(); } 609 void InstructionSelector::VisitFloat32Min(Node* node) { UNREACHABLE(); }
610 610
611 611
612 void InstructionSelector::VisitFloat64Min(Node* node) { UNREACHABLE(); } 612 void InstructionSelector::VisitFloat64Min(Node* node) { UNREACHABLE(); }
613 613
614 614
615 void InstructionSelector::VisitFloat32Abs(Node* node) { UNREACHABLE(); } 615 void InstructionSelector::VisitFloat32Abs(Node* node) {
616 VisitRR(this, kMips64AbsS, node);
617 }
616 618
617 619
618 void InstructionSelector::VisitFloat64Abs(Node* node) { UNREACHABLE(); } 620 void InstructionSelector::VisitFloat64Abs(Node* node) {
621 VisitRR(this, kMips64AbsD, node);
622 }
619 623
620 624
621 void InstructionSelector::VisitFloat32Sqrt(Node* node) { 625 void InstructionSelector::VisitFloat32Sqrt(Node* node) {
622 VisitRR(this, kMips64SqrtS, node); 626 VisitRR(this, kMips64SqrtS, node);
623 } 627 }
624 628
625 629
626 void InstructionSelector::VisitFloat64Sqrt(Node* node) { 630 void InstructionSelector::VisitFloat64Sqrt(Node* node) {
627 VisitRR(this, kMips64SqrtD, node); 631 VisitRR(this, kMips64SqrtD, node);
628 } 632 }
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 Node* left = node->InputAt(0); 1179 Node* left = node->InputAt(0);
1176 Node* right = node->InputAt(1); 1180 Node* right = node->InputAt(1);
1177 Emit(kMips64Float64InsertHighWord32, g.DefineSameAsFirst(node), 1181 Emit(kMips64Float64InsertHighWord32, g.DefineSameAsFirst(node),
1178 g.UseRegister(left), g.UseRegister(right)); 1182 g.UseRegister(left), g.UseRegister(right));
1179 } 1183 }
1180 1184
1181 1185
1182 // static 1186 // static
1183 MachineOperatorBuilder::Flags 1187 MachineOperatorBuilder::Flags
1184 InstructionSelector::SupportedMachineOperatorFlags() { 1188 InstructionSelector::SupportedMachineOperatorFlags() {
1185 return MachineOperatorBuilder::kFloat64RoundDown | 1189 return MachineOperatorBuilder::kFloat32Abs |
1190 MachineOperatorBuilder::kFloat64Abs |
1191 MachineOperatorBuilder::kFloat64RoundDown |
1186 MachineOperatorBuilder::kFloat64RoundTruncate; 1192 MachineOperatorBuilder::kFloat64RoundTruncate;
1187 } 1193 }
1188 1194
1189 } // namespace compiler 1195 } // namespace compiler
1190 } // namespace internal 1196 } // namespace internal
1191 } // namespace v8 1197 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/instruction-codes-mips64.h ('k') | src/mips/assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698