Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index 948598697cf47c38bad865f208579ac298f1b5a1..ee4e7ae8a03294dd34dc77525a3c85af9535fbaa 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -838,6 +838,9 @@ Node* WasmGraphBuilder::Unop(wasm::WasmOpcode opcode, Node* input) { |
op = m->BitcastFloat64ToInt64(); |
break; |
// kExprI64Clz: |
+ case wasm::kExprI64Clz: |
+ op = m->Word64Clz(); |
+ break; |
// kExprI64Ctz: |
// kExprI64Popcnt: |
case wasm::kExprI64Popcnt: { |
@@ -900,9 +903,6 @@ Node* WasmGraphBuilder::Unop(wasm::WasmOpcode opcode, Node* input) { |
#if WASM_64 |
// Opcodes only supported on 64-bit platforms. |
// TODO(titzer): query the machine operator builder here instead of #ifdef. |
- case wasm::kExprI64Clz: |
- op = m->Word64Clz(); |
- break; |
case wasm::kExprI64Ctz: { |
if (m->Word64Ctz().IsSupported()) { |
op = m->Word64Ctz().op(); |