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

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

Issue 1132033002: [turbofan] Float32Abs and Float64Abs are supported by all backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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.h ('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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 Node* left = node->InputAt(0); 1051 Node* left = node->InputAt(0);
1052 Node* right = node->InputAt(1); 1052 Node* right = node->InputAt(1);
1053 Emit(kMipsFloat64InsertHighWord32, g.DefineSameAsFirst(node), 1053 Emit(kMipsFloat64InsertHighWord32, g.DefineSameAsFirst(node),
1054 g.UseRegister(left), g.UseRegister(right)); 1054 g.UseRegister(left), g.UseRegister(right));
1055 } 1055 }
1056 1056
1057 1057
1058 // static 1058 // static
1059 MachineOperatorBuilder::Flags 1059 MachineOperatorBuilder::Flags
1060 InstructionSelector::SupportedMachineOperatorFlags() { 1060 InstructionSelector::SupportedMachineOperatorFlags() {
1061 MachineOperatorBuilder::Flags flags = 1061 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags;
1062 MachineOperatorBuilder::kFloat32Abs | MachineOperatorBuilder::kFloat64Abs;
1063
1064 if ((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && 1062 if ((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) &&
1065 IsFp64Mode()) { 1063 IsFp64Mode()) {
1066 flags |= MachineOperatorBuilder::kFloat64RoundDown | 1064 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1067 MachineOperatorBuilder::kFloat64RoundTruncate; 1065 MachineOperatorBuilder::kFloat64RoundTruncate;
1068 } 1066 }
1069 return flags; 1067 return flags;
1070 } 1068 }
1071 1069
1072 } // namespace compiler 1070 } // namespace compiler
1073 } // namespace internal 1071 } // namespace internal
1074 } // namespace v8 1072 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/mips64/instruction-selector-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698