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

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

Issue 1116073002: MIPS: Do not use the 64-bit floor and truncate instructions in fp32 mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use IsFp64Mode(). 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 | « no previous file | no next file » | 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 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 g.UseRegister(left), g.UseRegister(right)); 973 g.UseRegister(left), g.UseRegister(right));
974 } 974 }
975 975
976 976
977 // static 977 // static
978 MachineOperatorBuilder::Flags 978 MachineOperatorBuilder::Flags
979 InstructionSelector::SupportedMachineOperatorFlags() { 979 InstructionSelector::SupportedMachineOperatorFlags() {
980 MachineOperatorBuilder::Flags flags = 980 MachineOperatorBuilder::Flags flags =
981 MachineOperatorBuilder::kFloat32Abs | MachineOperatorBuilder::kFloat64Abs; 981 MachineOperatorBuilder::kFloat32Abs | MachineOperatorBuilder::kFloat64Abs;
982 982
983 if (IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) { 983 if ((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) &&
984 IsFp64Mode()) {
984 flags |= MachineOperatorBuilder::kFloat64RoundDown | 985 flags |= MachineOperatorBuilder::kFloat64RoundDown |
985 MachineOperatorBuilder::kFloat64RoundTruncate; 986 MachineOperatorBuilder::kFloat64RoundTruncate;
986 } 987 }
987 return flags; 988 return flags;
988 } 989 }
989 990
990 } // namespace compiler 991 } // namespace compiler
991 } // namespace internal 992 } // namespace internal
992 } // namespace v8 993 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698