Cast to bool by comparing to zero (#343)

This commit is contained in:
Daniel Wirtz
2018-11-23 15:20:52 +01:00
committed by GitHub
parent b723ff3e88
commit c30c62e383
38 changed files with 1072 additions and 1023 deletions

View File

@ -223,12 +223,11 @@
tee_local $12
f64.mul
set_local $9
block $break|0
loop $repeat|0
get_local $8
get_local $1
i32.ge_u
br_if $break|0
loop $repeat|0
get_local $8
get_local $1
i32.lt_u
if
get_local $8
f64.convert_u/i32
get_local $11
@ -242,20 +241,20 @@
set_local $5
i32.const 0
set_local $2
block $break|1
loop $continue|1
get_local $4
get_local $4
f64.mul
tee_local $6
get_local $5
get_local $5
f64.mul
tee_local $7
f64.add
f64.const 4
f64.le
if
loop $continue|1
get_local $4
get_local $4
f64.mul
tee_local $6
get_local $5
get_local $5
f64.mul
tee_local $7
f64.add
f64.const 4
f64.le
if
block $break|1
f64.const 2
get_local $4
f64.mul
@ -375,9 +374,7 @@
i32.add
set_local $8
br $repeat|0
unreachable
end
unreachable
end
)
(func $null (; 2 ;) (type $v)