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

@ -1072,13 +1072,10 @@
block $case1|0
get_local $2
if
block $tablify|0
get_local $2
i32.const 1
i32.sub
br_table $case1|0 $case2|0 $case3|0 $tablify|0
end
br $case4|0
get_local $2
i32.const 1
i32.sub
br_table $case1|0 $case2|0 $case3|0 $case4|0
end
f64.const 0.4636476090008061
get_local $1
@ -1317,13 +1314,10 @@
block $case1|1
get_local $3
if
block $tablify|00
get_local $3
i32.const 1
i32.sub
br_table $case1|1 $case2|1 $case3|1 $tablify|00
end
br $break|1
get_local $3
i32.const 1
i32.sub
br_table $case1|1 $case2|1 $case3|1 $break|1
end
f64.const 0.7853981633974483
return
@ -1344,13 +1338,10 @@
block $case1|2
get_local $3
if
block $tablify|01
get_local $3
i32.const 1
i32.sub
br_table $case1|2 $case2|2 $case3|2 $tablify|01
end
br $break|2
get_local $3
i32.const 1
i32.sub
br_table $case1|2 $case2|2 $case3|2 $break|2
end
f64.const 0
return
@ -1411,13 +1402,10 @@
get_local $3
tee_local $2
if
block $tablify|02
get_local $2
i32.const 1
i32.sub
br_table $case1|3 $case2|3 $case3|3 $tablify|02
end
br $break|3
get_local $2
i32.const 1
i32.sub
br_table $case1|3 $case2|3 $case3|3 $break|3
end
get_local $0
return