diff options
author | Alon Zakai <azakai@google.com> | 2019-04-30 15:14:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 15:14:11 -0700 |
commit | a360a68b78248196b157ba6b950456d17d1b5190 (patch) | |
tree | 0432fa4f6800f81812c1a604fa1844fcbf17f8f4 /test/wasm2js/emscripten.wast | |
parent | 06f659ccea289ba25a96b3877f1458c835c7f43b (diff) | |
download | binaryen-a360a68b78248196b157ba6b950456d17d1b5190.tar.gz binaryen-a360a68b78248196b157ba6b950456d17d1b5190.tar.bz2 binaryen-a360a68b78248196b157ba6b950456d17d1b5190.zip |
wasm2js: optimize away casts going into a suitable store (#2069)
Diffstat (limited to 'test/wasm2js/emscripten.wast')
-rw-r--r-- | test/wasm2js/emscripten.wast | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/wasm2js/emscripten.wast b/test/wasm2js/emscripten.wast index 7305f0dc9..8f797f8fc 100644 --- a/test/wasm2js/emscripten.wast +++ b/test/wasm2js/emscripten.wast @@ -52,6 +52,26 @@ (i32.const 128) ) ) + (i32.store + (i32.const 16) + (i32.add (i32.const 1) (i32.const 2)) + ) + (f32.store + (i32.const 16) + (f32.add (f32.const 3) (f32.const 4)) + ) + (f64.store + (i32.const 16) + (f64.add (f64.const 5) (f64.const 6)) + ) + (i32.store8 + (i32.const 16) + (i32.add (i32.const 7) (i32.const 8)) + ) + (i32.store16 + (i32.const 16) + (i32.add (i32.const 9) (i32.const 10)) + ) ) (func $__growWasmMemory (param $0 i32) (result i32) (grow_memory |