summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/s2wasm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h
index a12c5cb53..e10d365a0 100644
--- a/src/s2wasm.h
+++ b/src/s2wasm.h
@@ -908,6 +908,8 @@ class S2WasmBuilder {
else if (match("rem_u")) makeBinary(BinaryOp::RemU, type);
else if (match("reinterpret/i32") || match("reinterpret/i64")) makeUnary(UnaryOp::ReinterpretInt, type);
else if (match("reinterpret/f32") || match("reinterpret/f64")) makeUnary(UnaryOp::ReinterpretFloat, type);
+ else if (match("rotl")) makeBinary(BinaryOp::RotL, type);
+ else if (match("rotr")) makeBinary(BinaryOp::RotR, type);
else abort_on("type.r");
break;
}