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

Unified Diff: src/compiler/instruction-selector.cc

Issue 1044793002: [turbofan] Add backend support for float32 operations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add MachineOperator unit tests. Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: src/compiler/instruction-selector.cc
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc
index 028b91459d069ebf845dba9edf955f89daceb32f..c1d66ea345aec415ebe343757f62445a2da4fefb 100644
--- a/src/compiler/instruction-selector.cc
+++ b/src/compiler/instruction-selector.cc
@@ -751,6 +751,26 @@ void InstructionSelector::VisitNode(Node* node) {
return VisitTruncateFloat64ToInt32(node);
case IrOpcode::kTruncateInt64ToInt32:
return VisitTruncateInt64ToInt32(node);
+ case IrOpcode::kFloat32Add:
+ return MarkAsDouble(node), VisitFloat32Add(node);
+ case IrOpcode::kFloat32Sub:
+ return MarkAsDouble(node), VisitFloat32Sub(node);
+ case IrOpcode::kFloat32Mul:
+ return MarkAsDouble(node), VisitFloat32Mul(node);
+ case IrOpcode::kFloat32Div:
+ return MarkAsDouble(node), VisitFloat32Div(node);
+ case IrOpcode::kFloat32Min:
+ return MarkAsDouble(node), VisitFloat32Min(node);
+ case IrOpcode::kFloat32Max:
+ return MarkAsDouble(node), VisitFloat32Max(node);
+ case IrOpcode::kFloat32Sqrt:
+ return MarkAsDouble(node), VisitFloat32Sqrt(node);
+ case IrOpcode::kFloat32Equal:
+ return VisitFloat32Equal(node);
+ case IrOpcode::kFloat32LessThan:
+ return VisitFloat32LessThan(node);
+ case IrOpcode::kFloat32LessThanOrEqual:
+ return VisitFloat32LessThanOrEqual(node);
case IrOpcode::kFloat64Add:
return MarkAsDouble(node), VisitFloat64Add(node);
case IrOpcode::kFloat64Sub:

Powered by Google App Engine
This is Rietveld 408576698