diff options
author | Derek Schuff <dschuff@chromium.org> | 2016-03-23 12:48:36 -0700 |
---|---|---|
committer | Derek Schuff <dschuff@chromium.org> | 2016-03-23 12:48:36 -0700 |
commit | a67434f2dd05f7590c2b7ab18b6bf9d6215f79f2 (patch) | |
tree | 337b16019e96bf45dce989c1284fdbd8fddb79af /src/s2wasm.h | |
parent | c5a6210d4a60d194f6ab690f6f1206c6076e222d (diff) | |
parent | 6ae3a452453cce6513f27d5ed302c3fe1ff1cce3 (diff) | |
download | binaryen-a67434f2dd05f7590c2b7ab18b6bf9d6215f79f2.tar.gz binaryen-a67434f2dd05f7590c2b7ab18b6bf9d6215f79f2.tar.bz2 binaryen-a67434f2dd05f7590c2b7ab18b6bf9d6215f79f2.zip |
Merge pull request #274 from WebAssembly/rotr-s2wasm
Add rotate support to s2wasm
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r-- | src/s2wasm.h | 2 |
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; } |