Update Binaryen to latest and rebuild dist files

This commit is contained in:
dcode
2019-02-05 17:12:10 +01:00
parent c95c0f5fbe
commit cd1cfe6957
194 changed files with 68272 additions and 68272 deletions

View File

@ -11,7 +11,7 @@
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\n\00\00\00s\00t\00d\00/\00m\00o\00d\00.\00t\00s")
(table $0 1 anyfunc)
(table $0 1 funcref)
(elem (i32.const 0) $null)
(export "memory" (memory $0))
(export "table" (table $0))
@ -26,249 +26,249 @@
(local $7 i64)
(local $8 i64)
(local $9 i64)
get_local $0
i64.reinterpret/f64
tee_local $2
local.get $0
i64.reinterpret_f64
local.tee $2
i64.const 52
i64.shr_u
i64.const 2047
i64.and
set_local $4
get_local $1
i64.reinterpret/f64
tee_local $3
local.set $4
local.get $1
i64.reinterpret_f64
local.tee $3
i64.const 52
i64.shr_u
i64.const 2047
i64.and
set_local $5
get_local $2
local.set $5
local.get $2
i64.const 63
i64.shr_u
set_local $8
get_local $3
local.set $8
local.get $3
i64.const 1
i64.shl
tee_local $7
local.tee $7
i64.const 0
i64.eq
tee_local $6
local.tee $6
i32.eqz
if
get_local $4
local.get $4
i64.const 2047
i64.eq
set_local $6
local.set $6
end
get_local $6
local.get $6
i32.eqz
if
get_local $1
get_local $1
local.get $1
local.get $1
f64.ne
set_local $6
local.set $6
end
get_local $6
local.get $6
if
get_local $0
get_local $1
local.get $0
local.get $1
f64.mul
tee_local $0
get_local $0
local.tee $0
local.get $0
f64.div
return
end
block $folding-inner0
get_local $2
local.get $2
i64.const 1
i64.shl
tee_local $9
get_local $7
local.tee $9
local.get $7
i64.le_u
if
get_local $7
get_local $9
local.get $7
local.get $9
i64.eq
br_if $folding-inner0
get_local $0
local.get $0
return
end
get_local $4
local.get $4
i64.eqz
if (result i64)
get_local $2
local.get $2
i64.const 0
get_local $4
get_local $2
local.get $4
local.get $2
i64.const 12
i64.shl
i64.clz
i64.sub
tee_local $4
local.tee $4
i64.sub
i64.const 1
i64.add
i64.shl
else
get_local $2
local.get $2
i64.const 4503599627370495
i64.and
i64.const 4503599627370496
i64.or
end
set_local $2
get_local $5
local.set $2
local.get $5
i64.eqz
if (result i64)
get_local $3
local.get $3
i64.const 0
get_local $5
get_local $3
local.get $5
local.get $3
i64.const 12
i64.shl
i64.clz
i64.sub
tee_local $5
local.tee $5
i64.sub
i64.const 1
i64.add
i64.shl
else
get_local $3
local.get $3
i64.const 4503599627370495
i64.and
i64.const 4503599627370496
i64.or
end
set_local $3
local.set $3
loop $continue|0
get_local $4
get_local $5
local.get $4
local.get $5
i64.gt_s
if
get_local $2
get_local $3
local.get $2
local.get $3
i64.ge_u
if (result i64)
get_local $2
get_local $3
local.get $2
local.get $3
i64.eq
br_if $folding-inner0
get_local $2
get_local $3
local.get $2
local.get $3
i64.sub
else
get_local $2
local.get $2
end
i64.const 1
i64.shl
set_local $2
get_local $4
local.set $2
local.get $4
i64.const 1
i64.sub
set_local $4
local.set $4
br $continue|0
end
end
get_local $2
get_local $3
local.get $2
local.get $3
i64.ge_u
if
get_local $2
get_local $3
local.get $2
local.get $3
i64.eq
br_if $folding-inner0
get_local $2
get_local $3
local.get $2
local.get $3
i64.sub
set_local $2
local.set $2
end
get_local $2
get_local $2
local.get $2
local.get $2
i64.const 11
i64.shl
i64.clz
tee_local $3
local.tee $3
i64.shl
set_local $2
get_local $4
get_local $3
local.set $2
local.get $4
local.get $3
i64.sub
tee_local $4
local.tee $4
i64.const 0
i64.gt_s
if (result i64)
get_local $2
local.get $2
i64.const 4503599627370496
i64.sub
get_local $4
local.get $4
i64.const 52
i64.shl
i64.or
else
get_local $2
local.get $2
i64.const 0
get_local $4
local.get $4
i64.sub
i64.const 1
i64.add
i64.shr_u
end
get_local $8
local.get $8
i64.const 63
i64.shl
i64.or
f64.reinterpret/i64
f64.reinterpret_i64
return
end
f64.const 0
get_local $0
local.get $0
f64.mul
)
(func $std/mod/check<f64> (; 3 ;) (type $FFi) (param $0 f64) (param $1 f64) (result i32)
get_local $1
get_local $1
local.get $1
local.get $1
f64.ne
if
get_local $0
get_local $0
local.get $0
local.get $0
f64.ne
return
end
get_local $1
local.get $1
f64.const 0
f64.eq
if
f64.const 1
get_local $1
local.get $1
f64.div
f64.const 1
get_local $0
local.get $0
f64.div
f64.eq
return
end
get_local $0
get_local $1
local.get $0
local.get $1
f64.eq
)
(func $std/mod/test_fmod (; 4 ;) (type $FFFi) (param $0 f64) (param $1 f64) (param $2 f64) (result i32)
(local $3 i32)
get_local $0
get_local $1
local.get $0
local.get $1
call $~lib/math/NativeMath.mod
get_local $2
local.get $2
call $std/mod/check<f64>
tee_local $3
local.tee $3
if
get_local $0
get_local $1
local.get $0
local.get $1
call $std/mod/mod
get_local $2
local.get $2
call $std/mod/check<f64>
set_local $3
local.set $3
end
get_local $3
local.get $3
)
(func $~lib/math/NativeMathf.mod (; 5 ;) (type $fff) (param $0 f32) (param $1 f32) (result f32)
(local $2 i32)
@ -278,226 +278,226 @@
(local $6 i32)
(local $7 i32)
(local $8 i32)
get_local $0
i32.reinterpret/f32
tee_local $2
local.get $0
i32.reinterpret_f32
local.tee $2
i32.const 23
i32.shr_u
i32.const 255
i32.and
set_local $3
get_local $1
i32.reinterpret/f32
tee_local $4
local.set $3
local.get $1
i32.reinterpret_f32
local.tee $4
i32.const 23
i32.shr_u
i32.const 255
i32.and
set_local $6
get_local $2
local.set $6
local.get $2
i32.const -2147483648
i32.and
set_local $8
get_local $4
local.set $8
local.get $4
i32.const 1
i32.shl
tee_local $7
local.tee $7
i32.eqz
tee_local $5
local.tee $5
i32.eqz
if
get_local $3
local.get $3
i32.const 255
i32.eq
set_local $5
local.set $5
end
get_local $5
local.get $5
i32.eqz
if
get_local $1
get_local $1
local.get $1
local.get $1
f32.ne
set_local $5
local.set $5
end
get_local $5
local.get $5
if
get_local $0
get_local $1
local.get $0
local.get $1
f32.mul
tee_local $0
get_local $0
local.tee $0
local.get $0
f32.div
return
end
block $folding-inner0
get_local $2
local.get $2
i32.const 1
i32.shl
tee_local $5
get_local $7
local.tee $5
local.get $7
i32.le_u
if
get_local $5
get_local $7
local.get $5
local.get $7
i32.eq
br_if $folding-inner0
get_local $0
local.get $0
return
end
get_local $3
local.get $3
if (result i32)
get_local $2
local.get $2
i32.const 8388607
i32.and
i32.const 8388608
i32.or
else
get_local $2
local.get $2
i32.const 1
get_local $3
get_local $2
local.get $3
local.get $2
i32.const 9
i32.shl
i32.clz
i32.sub
tee_local $3
local.tee $3
i32.sub
i32.shl
end
set_local $2
get_local $6
local.set $2
local.get $6
if (result i32)
get_local $4
local.get $4
i32.const 8388607
i32.and
i32.const 8388608
i32.or
else
get_local $4
local.get $4
i32.const 1
get_local $6
get_local $4
local.get $6
local.get $4
i32.const 9
i32.shl
i32.clz
i32.sub
tee_local $6
local.tee $6
i32.sub
i32.shl
end
set_local $4
local.set $4
loop $continue|0
get_local $3
get_local $6
local.get $3
local.get $6
i32.gt_s
if
get_local $2
get_local $4
local.get $2
local.get $4
i32.ge_u
if (result i32)
get_local $2
get_local $4
local.get $2
local.get $4
i32.eq
br_if $folding-inner0
get_local $2
get_local $4
local.get $2
local.get $4
i32.sub
else
get_local $2
local.get $2
end
i32.const 1
i32.shl
set_local $2
get_local $3
local.set $2
local.get $3
i32.const 1
i32.sub
set_local $3
local.set $3
br $continue|0
end
end
get_local $2
get_local $4
local.get $2
local.get $4
i32.ge_u
if
get_local $2
get_local $4
local.get $2
local.get $4
i32.eq
br_if $folding-inner0
get_local $2
get_local $4
local.get $2
local.get $4
i32.sub
set_local $2
local.set $2
end
get_local $2
get_local $2
local.get $2
local.get $2
i32.const 8
i32.shl
i32.clz
tee_local $5
local.tee $5
i32.shl
set_local $2
get_local $3
get_local $5
local.set $2
local.get $3
local.get $5
i32.sub
tee_local $3
local.tee $3
i32.const 0
i32.gt_s
if (result i32)
get_local $2
local.get $2
i32.const 8388608
i32.sub
get_local $3
local.get $3
i32.const 23
i32.shl
i32.or
else
get_local $2
local.get $2
i32.const 1
get_local $3
local.get $3
i32.sub
i32.shr_u
end
get_local $8
local.get $8
i32.or
f32.reinterpret/i32
f32.reinterpret_i32
return
end
f32.const 0
get_local $0
local.get $0
f32.mul
)
(func $std/mod/check<f32> (; 6 ;) (type $ffi) (param $0 f32) (param $1 f32) (result i32)
get_local $1
get_local $1
local.get $1
local.get $1
f32.ne
if
get_local $0
get_local $0
local.get $0
local.get $0
f32.ne
return
end
get_local $1
local.get $1
f32.const 0
f32.eq
if
f32.const 1
get_local $1
local.get $1
f32.div
f32.const 1
get_local $0
local.get $0
f32.div
f32.eq
return
end
get_local $0
get_local $1
local.get $0
local.get $1
f32.eq
)
(func $std/mod/test_fmodf (; 7 ;) (type $fffi) (param $0 f32) (param $1 f32) (param $2 f32) (result i32)
get_local $0
get_local $1
local.get $0
local.get $1
call $~lib/math/NativeMathf.mod
get_local $2
local.get $2
call $std/mod/check<f32>
)
(func $start (; 8 ;) (type $v)