Created
February 2, 2017 02:15
-
-
Save ukyo/4f57a338f9b82b2bcce8d4c432a37491 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(module | |
(memory 1 1) | |
(func (export "test1") | |
(local $i i32) | |
i32.const 1000000000 | |
set_local $i | |
loop | |
i32.const 0 | |
i64.const 1 | |
i64.store16 offset=0 | |
i32.const 0 | |
i64.const 2 | |
i64.store16 offset=2 | |
i32.const 0 | |
i64.const 3 | |
i64.store16 offset=4 | |
i32.const 0 | |
i64.const 4 | |
i64.store16 offset=6 | |
get_local $i | |
i32.const 1 | |
i32.sub | |
tee_local $i | |
br_if 0 | |
end | |
) | |
(func (export "test2") | |
(local $i i32) | |
i32.const 1000000000 | |
set_local $i | |
loop | |
i32.const 0 | |
i64.const 1 | |
i64.store16 offset=1 align=1 | |
i32.const 0 | |
i64.const 2 | |
i64.store16 offset=3 align=1 | |
i32.const 0 | |
i64.const 3 | |
i64.store16 offset=5 align=1 | |
i32.const 0 | |
i64.const 4 | |
i64.store16 offset=7 align=1 | |
get_local $i | |
i32.const 1 | |
i32.sub | |
tee_local $i | |
br_if 0 | |
end | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment