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

Unified Diff: src/compiler/raw-machine-assembler.h

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/raw-machine-assembler.h
diff --git a/src/compiler/raw-machine-assembler.h b/src/compiler/raw-machine-assembler.h
index bcc96803f766869d65984a005751c705d864a68b..e9ef97fa7f9c90dcd49ffacbc8a68b3d943e1a8a 100644
--- a/src/compiler/raw-machine-assembler.h
+++ b/src/compiler/raw-machine-assembler.h
@@ -328,6 +328,36 @@ class RawMachineAssembler : public GraphBuilder {
#undef INTPTR_BINOP
+ Node* Float32Add(Node* a, Node* b) {
+ return NewNode(machine()->Float32Add(), a, b);
+ }
+ Node* Float32Sub(Node* a, Node* b) {
+ return NewNode(machine()->Float32Sub(), a, b);
+ }
+ Node* Float32Mul(Node* a, Node* b) {
+ return NewNode(machine()->Float32Mul(), a, b);
+ }
+ Node* Float32Div(Node* a, Node* b) {
+ return NewNode(machine()->Float32Div(), a, b);
+ }
+ Node* Float32Sqrt(Node* a) { return NewNode(machine()->Float32Sqrt(), a); }
+ Node* Float32Equal(Node* a, Node* b) {
+ return NewNode(machine()->Float32Equal(), a, b);
+ }
+ Node* Float32NotEqual(Node* a, Node* b) {
+ return WordBinaryNot(Float32Equal(a, b));
+ }
+ Node* Float32LessThan(Node* a, Node* b) {
+ return NewNode(machine()->Float32LessThan(), a, b);
+ }
+ Node* Float32LessThanOrEqual(Node* a, Node* b) {
+ return NewNode(machine()->Float32LessThanOrEqual(), a, b);
+ }
+ Node* Float32GreaterThan(Node* a, Node* b) { return Float32LessThan(b, a); }
+ Node* Float32GreaterThanOrEqual(Node* a, Node* b) {
+ return Float32LessThanOrEqual(b, a);
+ }
+
Node* Float64Add(Node* a, Node* b) {
return NewNode(machine()->Float64Add(), a, b);
}
@@ -343,6 +373,7 @@ class RawMachineAssembler : public GraphBuilder {
Node* Float64Mod(Node* a, Node* b) {
return NewNode(machine()->Float64Mod(), a, b);
}
+ Node* Float64Sqrt(Node* a) { return NewNode(machine()->Float64Sqrt(), a); }
Node* Float64Equal(Node* a, Node* b) {
return NewNode(machine()->Float64Equal(), a, b);
}

Powered by Google App Engine
This is Rietveld 408576698