Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index abd01301608f29e67aa2f75c5eec779a94efa3e6..327e7c35c41fd3eb1c06db7df6361904a881a194 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -511,7 +511,13 @@ Node* WasmGraphBuilder::Binop(wasm::WasmOpcode opcode, Node* left, |
op = m->Word64Shl(); |
break; |
// kExprI64ShrU: |
+ case wasm::kExprI64ShrU: |
+ op = m->Word64Shr(); |
+ break; |
// kExprI64ShrS: |
+ case wasm::kExprI64ShrS: |
+ op = m->Word64Sar(); |
+ break; |
// kExprI64Eq: |
case wasm::kExprI64Eq: |
op = m->Word64Equal(); |
@@ -599,12 +605,6 @@ Node* WasmGraphBuilder::Binop(wasm::WasmOpcode opcode, Node* left, |
op = m->Uint64Mod(); |
return graph()->NewNode(op, left, right, |
trap_->ZeroCheck64(kTrapRemByZero, right)); |
- case wasm::kExprI64ShrU: |
- op = m->Word64Shr(); |
- break; |
- case wasm::kExprI64ShrS: |
- op = m->Word64Sar(); |
- break; |
case wasm::kExprI64Ror: |
op = m->Word64Ror(); |
break; |