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

Side by Side Diff: src/compiler/machine-operator.h

Issue 1419753008: MIPS: [turbofan] Properly implement Float64/32 Min/Max instructions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add TF FloatMin|Max execution tests. 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 | « no previous file | src/compiler/mips/code-generator-mips.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #ifndef V8_COMPILER_MACHINE_OPERATOR_H_ 5 #ifndef V8_COMPILER_MACHINE_OPERATOR_H_
6 #define V8_COMPILER_MACHINE_OPERATOR_H_ 6 #define V8_COMPILER_MACHINE_OPERATOR_H_
7 7
8 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/compiler/machine-type.h" 9 #include "src/compiler/machine-type.h"
10 10
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 const Operator* Float32LessThanOrEqual(); 229 const Operator* Float32LessThanOrEqual();
230 230
231 // Floating point comparisons complying to IEEE 754 (double-precision). 231 // Floating point comparisons complying to IEEE 754 (double-precision).
232 const Operator* Float64Equal(); 232 const Operator* Float64Equal();
233 const Operator* Float64LessThan(); 233 const Operator* Float64LessThan();
234 const Operator* Float64LessThanOrEqual(); 234 const Operator* Float64LessThanOrEqual();
235 235
236 // Floating point min/max complying to IEEE 754 (single-precision). 236 // Floating point min/max complying to IEEE 754 (single-precision).
237 const OptionalOperator Float32Max(); 237 const OptionalOperator Float32Max();
238 const OptionalOperator Float32Min(); 238 const OptionalOperator Float32Min();
239 bool HasFloat32Max() const { return flags_ & kFloat32Max; }
Benedikt Meurer 2015/11/03 05:39:00 You don't need these functions. Just use Float32Ma
dusan.milosavljevic 2015/11/03 13:48:34 Done.
dusan.milosavljevic 2015/11/03 13:48:34 Right, exactly what I need. Thank you.
240 bool HasFloat64Max() const { return flags_ & kFloat64Max; }
Benedikt Meurer 2015/11/03 05:39:00 Same as above.
239 241
240 // Floating point min/max complying to IEEE 754 (double-precision). 242 // Floating point min/max complying to IEEE 754 (double-precision).
241 const OptionalOperator Float64Max(); 243 const OptionalOperator Float64Max();
242 const OptionalOperator Float64Min(); 244 const OptionalOperator Float64Min();
245 bool HasFloat32Min() const { return flags_ & kFloat32Min; }
Benedikt Meurer 2015/11/03 05:39:00 Same as above.
dusan.milosavljevic 2015/11/03 13:48:34 Done.
246 bool HasFloat64Min() const { return flags_ & kFloat64Min; }
243 247
244 // Floating point abs complying to IEEE 754 (single-precision). 248 // Floating point abs complying to IEEE 754 (single-precision).
245 const Operator* Float32Abs(); 249 const Operator* Float32Abs();
246 250
247 // Floating point abs complying to IEEE 754 (double-precision). 251 // Floating point abs complying to IEEE 754 (double-precision).
248 const Operator* Float64Abs(); 252 const Operator* Float64Abs();
249 253
250 // Floating point rounding. 254 // Floating point rounding.
251 const OptionalOperator Float64RoundDown(); 255 const OptionalOperator Float64RoundDown();
252 const OptionalOperator Float64RoundTruncate(); 256 const OptionalOperator Float64RoundTruncate();
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 }; 320 };
317 321
318 322
319 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) 323 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags)
320 324
321 } // namespace compiler 325 } // namespace compiler
322 } // namespace internal 326 } // namespace internal
323 } // namespace v8 327 } // namespace v8
324 328
325 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ 329 #endif // V8_COMPILER_MACHINE_OPERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/mips/code-generator-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698