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

Unified Diff: src/compiler/wasm-compiler.cc

Issue 2728823005: [wasm] Implement simd lowering for F32x4 and I32x4 compare ops (Closed)
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « src/compiler/simd-scalar-lowering.cc ('k') | test/cctest/wasm/test-run-wasm-simd.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/wasm-compiler.cc
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
index a7113c38f079b5dfb0dfe3858d7bcfeaf3190a18..40ca065a03faa8249659935603fefc12a7c79d64 100644
--- a/src/compiler/wasm-compiler.cc
+++ b/src/compiler/wasm-compiler.cc
@@ -3408,6 +3408,21 @@ Node* WasmGraphBuilder::SimdOp(wasm::WasmOpcode opcode,
case wasm::kExprF32x4Ne:
return graph()->NewNode(jsgraph()->machine()->Float32x4NotEqual(),
inputs[0], inputs[1]);
+ // TODO(aseemgarg): Get rid of GreaterThan and GreaterThanEquals machine ops
+ // for all SIMD types.
+ case wasm::kExprF32x4Gt:
+ return graph()->NewNode(jsgraph()->machine()->Float32x4GreaterThan(),
+ inputs[0], inputs[1]);
+ case wasm::kExprF32x4Ge:
+ return graph()->NewNode(
+ jsgraph()->machine()->Float32x4GreaterThanOrEqual(), inputs[0],
+ inputs[1]);
+ case wasm::kExprF32x4Lt:
+ return graph()->NewNode(jsgraph()->machine()->Float32x4LessThan(),
+ inputs[0], inputs[1]);
+ case wasm::kExprF32x4Le:
+ return graph()->NewNode(jsgraph()->machine()->Float32x4LessThanOrEqual(),
+ inputs[0], inputs[1]);
case wasm::kExprI32x4Splat:
return graph()->NewNode(jsgraph()->machine()->Int32x4Splat(), inputs[0]);
case wasm::kExprI32x4SConvertF32x4:
« no previous file with comments | « src/compiler/simd-scalar-lowering.cc ('k') | test/cctest/wasm/test-run-wasm-simd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698