-
-
Save kleisauke/0084ac571832295019bf5feca99ada02 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 | |
(type $t0 (func)) | |
(type $t1 (func (result i64))) | |
(func $spiller (type $t0)) | |
(func $main (export "main") (type $t1) (result i64) | |
(local $l0 i64) | |
(local.set $l0 | |
(i64.load32_u | |
(i32.const 0))) | |
(call $spiller) | |
(loop $L0 | |
(if $I1 | |
(i32.eqz | |
(i32.load | |
(i32.const 0))) | |
(then | |
(local.set $l0 | |
(i64.and | |
(local.get $l0) | |
(i64.const 1))))) | |
(if $I2 | |
(i64.eqz | |
(i64.and | |
(local.get $l0) | |
(i64.const 1))) | |
(then | |
(local.set $l0 | |
(i64.shl | |
(local.get $l0) | |
(i64.const 8))))) | |
(block $B3 | |
(i32.eqz | |
(i64.eqz | |
(i64.and | |
(local.get $l0) | |
(i64.const 16777215)))) | |
(call $spiller) | |
(br_if $L0)) | |
(call $spiller)) | |
(local.get $l0)) | |
(memory $M0 1 1) | |
(data $d0 (i32.const 0) "xV4\12")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment