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

Unified Diff: src/compiler/machine-operator.h

Issue 1474963002: [turbofan] Implemented the optional Float32RoundUp operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@f32rounddown
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/machine-operator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/machine-operator.h
diff --git a/src/compiler/machine-operator.h b/src/compiler/machine-operator.h
index 9e1bda746ecb68e077c5ac1e8c19e7f8b178e3cb..03c036bb87f4d0b1c7c0725f1b1a4d8e67f6b7be 100644
--- a/src/compiler/machine-operator.h
+++ b/src/compiler/machine-operator.h
@@ -118,22 +118,23 @@ class MachineOperatorBuilder final : public ZoneObject {
kFloat64Min = 1u << 3,
kFloat32RoundDown = 1u << 4,
kFloat64RoundDown = 1u << 5,
- kFloat64RoundUp = 1u << 6,
- kFloat64RoundTruncate = 1u << 7,
- kFloat64RoundTiesEven = 1u << 8,
- kFloat64RoundTiesAway = 1u << 9,
- kInt32DivIsSafe = 1u << 10,
- kUint32DivIsSafe = 1u << 11,
- kWord32ShiftIsSafe = 1u << 12,
- kWord32Ctz = 1u << 13,
- kWord64Ctz = 1u << 14,
- kWord32Popcnt = 1u << 15,
- kWord64Popcnt = 1u << 16,
+ kFloat32RoundUp = 1u << 6,
+ kFloat64RoundUp = 1u << 7,
+ kFloat64RoundTruncate = 1u << 8,
+ kFloat64RoundTiesEven = 1u << 9,
+ kFloat64RoundTiesAway = 1u << 10,
+ kInt32DivIsSafe = 1u << 11,
+ kUint32DivIsSafe = 1u << 12,
+ kWord32ShiftIsSafe = 1u << 13,
+ kWord32Ctz = 1u << 14,
+ kWord64Ctz = 1u << 15,
+ kWord32Popcnt = 1u << 16,
+ kWord64Popcnt = 1u << 17,
kAllOptionalOps = kFloat32Max | kFloat32Min | kFloat64Max | kFloat64Min |
- kFloat64RoundDown | kFloat64RoundUp |
- kFloat64RoundTruncate | kFloat64RoundTiesAway |
- kFloat64RoundTiesEven | kWord32Ctz | kWord64Ctz |
- kWord32Popcnt | kWord64Popcnt | kFloat32RoundDown
+ kFloat32RoundDown | kFloat64RoundDown | kFloat32RoundUp |
+ kFloat64RoundUp | kFloat64RoundTruncate |
+ kFloat64RoundTiesAway | kFloat64RoundTiesEven |
+ kWord32Ctz | kWord64Ctz | kWord32Popcnt | kWord64Popcnt
};
typedef base::Flags<Flag, unsigned> Flags;
@@ -271,6 +272,7 @@ class MachineOperatorBuilder final : public ZoneObject {
// Floating point rounding.
const OptionalOperator Float32RoundDown();
const OptionalOperator Float64RoundDown();
+ const OptionalOperator Float32RoundUp();
const OptionalOperator Float64RoundUp();
const OptionalOperator Float64RoundTruncate();
const OptionalOperator Float64RoundTiesAway();
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/machine-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698