mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-19 18:01:31 +00:00
Proper isNaN/isFinite without a temp. local
This commit is contained in:
@ -223,26 +223,31 @@
|
||||
)
|
||||
)
|
||||
(func $std/math/ulperr (; 34 ;) (type $FFFF) (param $0 f64) (param $1 f64) (param $2 f64) (result f64)
|
||||
(local $3 f64)
|
||||
(local $4 i32)
|
||||
(local $3 i32)
|
||||
(if
|
||||
(i32.and
|
||||
(if (result i32)
|
||||
(tee_local $4
|
||||
(f64.ne
|
||||
(tee_local $3
|
||||
(get_local $0)
|
||||
(tee_local $3
|
||||
(i64.gt_u
|
||||
(i64.and
|
||||
(i64.reinterpret/f64
|
||||
(get_local $0)
|
||||
)
|
||||
(i64.const 9223372036854775807)
|
||||
)
|
||||
(get_local $3)
|
||||
(i64.const 9218868437227405312)
|
||||
)
|
||||
)
|
||||
(f64.ne
|
||||
(tee_local $3
|
||||
(get_local $1)
|
||||
(i64.gt_u
|
||||
(i64.and
|
||||
(i64.reinterpret/f64
|
||||
(get_local $1)
|
||||
)
|
||||
(i64.const 9223372036854775807)
|
||||
)
|
||||
(get_local $3)
|
||||
(i64.const 9218868437227405312)
|
||||
)
|
||||
(get_local $4)
|
||||
(get_local $3)
|
||||
)
|
||||
(i32.const 1)
|
||||
)
|
||||
@ -275,22 +280,14 @@
|
||||
)
|
||||
)
|
||||
(if
|
||||
(i32.eqz
|
||||
(select
|
||||
(f64.ne
|
||||
(f64.abs
|
||||
(tee_local $3
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(f64.const inf)
|
||||
)
|
||||
(i32.const 0)
|
||||
(f64.eq
|
||||
(get_local $3)
|
||||
(get_local $3)
|
||||
(i64.ge_u
|
||||
(i64.and
|
||||
(i64.reinterpret/f64
|
||||
(get_local $0)
|
||||
)
|
||||
(i64.const 9223372036854775807)
|
||||
)
|
||||
(i64.const 9218868437227405312)
|
||||
)
|
||||
(block
|
||||
(set_local $0
|
||||
@ -335,25 +332,31 @@
|
||||
)
|
||||
)
|
||||
(if
|
||||
(f64.ne
|
||||
(tee_local $4
|
||||
(get_local $1)
|
||||
(i64.gt_u
|
||||
(i64.and
|
||||
(i64.reinterpret/f64
|
||||
(get_local $1)
|
||||
)
|
||||
(i64.const 9223372036854775807)
|
||||
)
|
||||
(get_local $4)
|
||||
(i64.const 9218868437227405312)
|
||||
)
|
||||
(return
|
||||
(f64.ne
|
||||
(tee_local $4
|
||||
(get_local $0)
|
||||
(i64.gt_u
|
||||
(i64.and
|
||||
(i64.reinterpret/f64
|
||||
(get_local $0)
|
||||
)
|
||||
(i64.const 9223372036854775807)
|
||||
)
|
||||
(get_local $4)
|
||||
(i64.const 9218868437227405312)
|
||||
)
|
||||
)
|
||||
)
|
||||
(if
|
||||
(f64.ge
|
||||
(f64.abs
|
||||
(tee_local $0
|
||||
(tee_local $4
|
||||
(call $std/math/ulperr
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
@ -366,7 +369,7 @@
|
||||
(block
|
||||
(call $std/math/logf
|
||||
(f64.abs
|
||||
(get_local $0)
|
||||
(get_local $4)
|
||||
)
|
||||
)
|
||||
(return
|
||||
@ -525,26 +528,31 @@
|
||||
)
|
||||
)
|
||||
(func $std/math/ulperrf (; 39 ;) (type $ffff) (param $0 f32) (param $1 f32) (param $2 f32) (result f32)
|
||||
(local $3 f32)
|
||||
(local $4 i32)
|
||||
(local $3 i32)
|
||||
(if
|
||||
(i32.and
|
||||
(if (result i32)
|
||||
(tee_local $4
|
||||
(f32.ne
|
||||
(tee_local $3
|
||||
(get_local $0)
|
||||
(tee_local $3
|
||||
(i32.gt_u
|
||||
(i32.and
|
||||
(i32.reinterpret/f32
|
||||
(get_local $0)
|
||||
)
|
||||
(i32.const 2147483647)
|
||||
)
|
||||
(get_local $3)
|
||||
(i32.const 2139095040)
|
||||
)
|
||||
)
|
||||
(f32.ne
|
||||
(tee_local $3
|
||||
(get_local $1)
|
||||
(i32.gt_u
|
||||
(i32.and
|
||||
(i32.reinterpret/f32
|
||||
(get_local $1)
|
||||
)
|
||||
(i32.const 2147483647)
|
||||
)
|
||||
(get_local $3)
|
||||
(i32.const 2139095040)
|
||||
)
|
||||
(get_local $4)
|
||||
(get_local $3)
|
||||
)
|
||||
(i32.const 1)
|
||||
)
|
||||
@ -577,22 +585,14 @@
|
||||
)
|
||||
)
|
||||
(if
|
||||
(i32.eqz
|
||||
(select
|
||||
(f32.ne
|
||||
(f32.abs
|
||||
(tee_local $3
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(f32.const inf)
|
||||
)
|
||||
(i32.const 0)
|
||||
(f32.eq
|
||||
(get_local $3)
|
||||
(get_local $3)
|
||||
(i32.ge_u
|
||||
(i32.and
|
||||
(i32.reinterpret/f32
|
||||
(get_local $0)
|
||||
)
|
||||
(i32.const 2147483647)
|
||||
)
|
||||
(i32.const 2139095040)
|
||||
)
|
||||
(block
|
||||
(set_local $0
|
||||
@ -637,25 +637,31 @@
|
||||
)
|
||||
)
|
||||
(if
|
||||
(f32.ne
|
||||
(tee_local $4
|
||||
(get_local $1)
|
||||
(i32.gt_u
|
||||
(i32.and
|
||||
(i32.reinterpret/f32
|
||||
(get_local $1)
|
||||
)
|
||||
(i32.const 2147483647)
|
||||
)
|
||||
(get_local $4)
|
||||
(i32.const 2139095040)
|
||||
)
|
||||
(return
|
||||
(f32.ne
|
||||
(tee_local $4
|
||||
(get_local $0)
|
||||
(i32.gt_u
|
||||
(i32.and
|
||||
(i32.reinterpret/f32
|
||||
(get_local $0)
|
||||
)
|
||||
(i32.const 2147483647)
|
||||
)
|
||||
(get_local $4)
|
||||
(i32.const 2139095040)
|
||||
)
|
||||
)
|
||||
)
|
||||
(if
|
||||
(f32.ge
|
||||
(f32.abs
|
||||
(tee_local $0
|
||||
(tee_local $4
|
||||
(call $std/math/ulperrf
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
@ -669,7 +675,7 @@
|
||||
(call $std/math/logf
|
||||
(f64.promote/f32
|
||||
(f32.abs
|
||||
(get_local $0)
|
||||
(get_local $4)
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -3161,11 +3167,14 @@
|
||||
)
|
||||
(block
|
||||
(if
|
||||
(f64.ne
|
||||
(tee_local $1
|
||||
(get_local $0)
|
||||
(i64.gt_u
|
||||
(i64.and
|
||||
(i64.reinterpret/f64
|
||||
(get_local $0)
|
||||
)
|
||||
(i64.const 9223372036854775807)
|
||||
)
|
||||
(get_local $1)
|
||||
(i64.const 9218868437227405312)
|
||||
)
|
||||
(return
|
||||
(get_local $0)
|
||||
@ -3549,11 +3558,14 @@
|
||||
)
|
||||
(block
|
||||
(if
|
||||
(f32.ne
|
||||
(tee_local $1
|
||||
(get_local $0)
|
||||
(i32.gt_u
|
||||
(i32.and
|
||||
(i32.reinterpret/f32
|
||||
(get_local $0)
|
||||
)
|
||||
(i32.const 2147483647)
|
||||
)
|
||||
(get_local $1)
|
||||
(i32.const 2139095040)
|
||||
)
|
||||
(return
|
||||
(get_local $0)
|
||||
@ -4082,27 +4094,32 @@
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
(local $6 f64)
|
||||
(local $7 i64)
|
||||
(local $8 i32)
|
||||
(local $6 i64)
|
||||
(local $7 i32)
|
||||
(block $folding-inner0
|
||||
(if
|
||||
(i32.and
|
||||
(if (result i32)
|
||||
(tee_local $2
|
||||
(f64.ne
|
||||
(tee_local $6
|
||||
(get_local $1)
|
||||
(i64.gt_u
|
||||
(i64.and
|
||||
(i64.reinterpret/f64
|
||||
(get_local $1)
|
||||
)
|
||||
(i64.const 9223372036854775807)
|
||||
)
|
||||
(get_local $6)
|
||||
(i64.const 9218868437227405312)
|
||||
)
|
||||
)
|
||||
(get_local $2)
|
||||
(f64.ne
|
||||
(tee_local $6
|
||||
(get_local $0)
|
||||
(i64.gt_u
|
||||
(i64.and
|
||||
(i64.reinterpret/f64
|
||||
(get_local $0)
|
||||
)
|
||||
(i64.const 9223372036854775807)
|
||||
)
|
||||
(get_local $6)
|
||||
(i64.const 9218868437227405312)
|
||||
)
|
||||
)
|
||||
(i32.const 1)
|
||||
@ -4117,7 +4134,7 @@
|
||||
(set_local $3
|
||||
(i32.wrap/i64
|
||||
(i64.shr_u
|
||||
(tee_local $7
|
||||
(tee_local $6
|
||||
(i64.reinterpret/f64
|
||||
(get_local $1)
|
||||
)
|
||||
@ -4126,15 +4143,15 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(set_local $8
|
||||
(set_local $7
|
||||
(i32.wrap/i64
|
||||
(get_local $7)
|
||||
(get_local $6)
|
||||
)
|
||||
)
|
||||
(set_local $4
|
||||
(i32.wrap/i64
|
||||
(i64.shr_u
|
||||
(tee_local $7
|
||||
(tee_local $6
|
||||
(i64.reinterpret/f64
|
||||
(get_local $0)
|
||||
)
|
||||
@ -4150,7 +4167,7 @@
|
||||
(get_local $3)
|
||||
(i32.const 1072693248)
|
||||
)
|
||||
(get_local $8)
|
||||
(get_local $7)
|
||||
)
|
||||
)
|
||||
(return
|
||||
@ -4190,7 +4207,7 @@
|
||||
)
|
||||
)
|
||||
(i32.wrap/i64
|
||||
(get_local $7)
|
||||
(get_local $6)
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -4244,7 +4261,7 @@
|
||||
(i32.eqz
|
||||
(i32.or
|
||||
(get_local $3)
|
||||
(get_local $8)
|
||||
(get_local $7)
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -4459,25 +4476,30 @@
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
(local $6 f32)
|
||||
(block $folding-inner0
|
||||
(if
|
||||
(i32.and
|
||||
(if (result i32)
|
||||
(tee_local $2
|
||||
(f32.ne
|
||||
(tee_local $6
|
||||
(get_local $1)
|
||||
(i32.gt_u
|
||||
(i32.and
|
||||
(i32.reinterpret/f32
|
||||
(get_local $1)
|
||||
)
|
||||
(i32.const 2147483647)
|
||||
)
|
||||
(get_local $6)
|
||||
(i32.const 2139095040)
|
||||
)
|
||||
)
|
||||
(get_local $2)
|
||||
(f32.ne
|
||||
(tee_local $6
|
||||
(get_local $0)
|
||||
(i32.gt_u
|
||||
(i32.and
|
||||
(i32.reinterpret/f32
|
||||
(get_local $0)
|
||||
)
|
||||
(i32.const 2147483647)
|
||||
)
|
||||
(get_local $6)
|
||||
(i32.const 2139095040)
|
||||
)
|
||||
)
|
||||
(i32.const 1)
|
||||
@ -5197,16 +5219,16 @@
|
||||
(local $1 f64)
|
||||
(local $2 i32)
|
||||
(local $3 f64)
|
||||
(local $4 f64)
|
||||
(local $5 i32)
|
||||
(local $6 i64)
|
||||
(local $7 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i64)
|
||||
(local $6 i32)
|
||||
(local $7 f64)
|
||||
(local $8 f64)
|
||||
(set_local $7
|
||||
(set_local $4
|
||||
(i32.wrap/i64
|
||||
(i64.and
|
||||
(i64.shr_u
|
||||
(tee_local $6
|
||||
(tee_local $5
|
||||
(i64.reinterpret/f64
|
||||
(get_local $0)
|
||||
)
|
||||
@ -5217,33 +5239,36 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(set_local $5
|
||||
(set_local $6
|
||||
(i32.wrap/i64
|
||||
(i64.shr_u
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
(i64.const 63)
|
||||
)
|
||||
)
|
||||
)
|
||||
(if
|
||||
(i32.ge_u
|
||||
(get_local $7)
|
||||
(get_local $4)
|
||||
(i32.const 1078159482)
|
||||
)
|
||||
(block
|
||||
(if
|
||||
(f64.ne
|
||||
(tee_local $3
|
||||
(get_local $0)
|
||||
(i64.gt_u
|
||||
(i64.and
|
||||
(i64.reinterpret/f64
|
||||
(get_local $0)
|
||||
)
|
||||
(i64.const 9223372036854775807)
|
||||
)
|
||||
(get_local $3)
|
||||
(i64.const 9218868437227405312)
|
||||
)
|
||||
(return
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(if
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
(return
|
||||
(f64.const -1)
|
||||
)
|
||||
@ -5264,18 +5289,18 @@
|
||||
)
|
||||
(if
|
||||
(i32.gt_u
|
||||
(get_local $7)
|
||||
(get_local $4)
|
||||
(i32.const 1071001154)
|
||||
)
|
||||
(block
|
||||
(if
|
||||
(i32.lt_u
|
||||
(get_local $7)
|
||||
(get_local $4)
|
||||
(i32.const 1072734898)
|
||||
)
|
||||
(set_local $3
|
||||
(set_local $0
|
||||
(if (result f64)
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
(block (result f64)
|
||||
(set_local $1
|
||||
(f64.const -1.9082149292705877e-10)
|
||||
@ -5303,7 +5328,7 @@
|
||||
)
|
||||
)
|
||||
(block
|
||||
(set_local $3
|
||||
(set_local $0
|
||||
(f64.sub
|
||||
(get_local $0)
|
||||
(f64.mul
|
||||
@ -5319,7 +5344,7 @@
|
||||
(select
|
||||
(f64.const -0.5)
|
||||
(f64.const 0.5)
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -5338,13 +5363,13 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(set_local $8
|
||||
(set_local $7
|
||||
(f64.sub
|
||||
(f64.sub
|
||||
(get_local $3)
|
||||
(get_local $0)
|
||||
(tee_local $0
|
||||
(f64.sub
|
||||
(get_local $3)
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
@ -5355,7 +5380,7 @@
|
||||
)
|
||||
(if
|
||||
(i32.lt_u
|
||||
(get_local $7)
|
||||
(get_local $4)
|
||||
(i32.const 1016070144)
|
||||
)
|
||||
(return
|
||||
@ -5367,11 +5392,11 @@
|
||||
(f64.sub
|
||||
(f64.const 3)
|
||||
(f64.mul
|
||||
(tee_local $3
|
||||
(tee_local $8
|
||||
(f64.add
|
||||
(f64.const 1)
|
||||
(f64.mul
|
||||
(tee_local $4
|
||||
(tee_local $3
|
||||
(f64.mul
|
||||
(get_local $0)
|
||||
(tee_local $1
|
||||
@ -5385,19 +5410,19 @@
|
||||
(f64.add
|
||||
(f64.const -0.03333333333333313)
|
||||
(f64.mul
|
||||
(get_local $4)
|
||||
(get_local $3)
|
||||
(f64.add
|
||||
(f64.const 1.5873015872548146e-03)
|
||||
(f64.mul
|
||||
(get_local $4)
|
||||
(get_local $3)
|
||||
(f64.add
|
||||
(f64.const -7.93650757867488e-05)
|
||||
(f64.mul
|
||||
(get_local $4)
|
||||
(get_local $3)
|
||||
(f64.add
|
||||
(f64.const 4.008217827329362e-06)
|
||||
(f64.mul
|
||||
(get_local $4)
|
||||
(get_local $3)
|
||||
(f64.const -2.0109921818362437e-07)
|
||||
)
|
||||
)
|
||||
@ -5416,10 +5441,10 @@
|
||||
)
|
||||
(set_local $1
|
||||
(f64.mul
|
||||
(get_local $4)
|
||||
(get_local $3)
|
||||
(f64.div
|
||||
(f64.sub
|
||||
(get_local $3)
|
||||
(get_local $8)
|
||||
(get_local $1)
|
||||
)
|
||||
(f64.sub
|
||||
@ -5444,7 +5469,7 @@
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
(get_local $4)
|
||||
(get_local $3)
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -5456,12 +5481,12 @@
|
||||
(get_local $0)
|
||||
(f64.sub
|
||||
(get_local $1)
|
||||
(get_local $8)
|
||||
(get_local $7)
|
||||
)
|
||||
)
|
||||
(get_local $8)
|
||||
(get_local $7)
|
||||
)
|
||||
(get_local $4)
|
||||
(get_local $3)
|
||||
)
|
||||
)
|
||||
(if
|
||||
@ -5536,13 +5561,13 @@
|
||||
(if
|
||||
(i32.and
|
||||
(if (result i32)
|
||||
(tee_local $5
|
||||
(tee_local $4
|
||||
(i32.lt_s
|
||||
(get_local $2)
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(get_local $5)
|
||||
(get_local $4)
|
||||
(i32.gt_s
|
||||
(get_local $2)
|
||||
(i32.const 56)
|
||||
@ -5586,7 +5611,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(set_local $6
|
||||
(set_local $5
|
||||
(i64.shl
|
||||
(i64.sub
|
||||
(i64.const 1023)
|
||||
@ -5608,7 +5633,7 @@
|
||||
(f64.sub
|
||||
(f64.const 1)
|
||||
(f64.reinterpret/i64
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -5621,7 +5646,7 @@
|
||||
(f64.add
|
||||
(get_local $1)
|
||||
(f64.reinterpret/i64
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -5638,11 +5663,11 @@
|
||||
)
|
||||
(func $~lib/math/NativeMath.exp (; 86 ;) (type $FF) (param $0 f64) (result f64)
|
||||
(local $1 i32)
|
||||
(local $2 f64)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $4 f64)
|
||||
(local $5 f64)
|
||||
(set_local $4
|
||||
(set_local $3
|
||||
(i32.shr_u
|
||||
(tee_local $1
|
||||
(i32.wrap/i64
|
||||
@ -5669,11 +5694,14 @@
|
||||
)
|
||||
(block
|
||||
(if
|
||||
(f64.ne
|
||||
(tee_local $2
|
||||
(get_local $0)
|
||||
(i64.gt_u
|
||||
(i64.and
|
||||
(i64.reinterpret/f64
|
||||
(get_local $0)
|
||||
)
|
||||
(i64.const 9223372036854775807)
|
||||
)
|
||||
(get_local $2)
|
||||
(i64.const 9218868437227405312)
|
||||
)
|
||||
(return
|
||||
(get_local $0)
|
||||
@ -5709,12 +5737,12 @@
|
||||
)
|
||||
(set_local $0
|
||||
(f64.sub
|
||||
(tee_local $2
|
||||
(tee_local $5
|
||||
(f64.sub
|
||||
(get_local $0)
|
||||
(f64.mul
|
||||
(f64.convert_s/i32
|
||||
(tee_local $3
|
||||
(tee_local $2
|
||||
(if (result i32)
|
||||
(i32.ge_u
|
||||
(get_local $1)
|
||||
@ -5735,9 +5763,9 @@
|
||||
(i32.sub
|
||||
(i32.sub
|
||||
(i32.const 1)
|
||||
(get_local $4)
|
||||
(get_local $3)
|
||||
)
|
||||
(get_local $4)
|
||||
(get_local $3)
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -5746,10 +5774,10 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(tee_local $5
|
||||
(tee_local $4
|
||||
(f64.mul
|
||||
(f64.convert_s/i32
|
||||
(get_local $3)
|
||||
(get_local $2)
|
||||
)
|
||||
(f64.const 1.9082149292705877e-10)
|
||||
)
|
||||
@ -5761,7 +5789,7 @@
|
||||
(get_local $1)
|
||||
(i32.const 1043333120)
|
||||
)
|
||||
(set_local $2
|
||||
(set_local $5
|
||||
(get_local $0)
|
||||
)
|
||||
(return
|
||||
@ -5824,15 +5852,15 @@
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(get_local $5)
|
||||
(get_local $4)
|
||||
)
|
||||
(get_local $2)
|
||||
(get_local $5)
|
||||
)
|
||||
)
|
||||
)
|
||||
(if
|
||||
(i32.eqz
|
||||
(get_local $3)
|
||||
(get_local $2)
|
||||
)
|
||||
(return
|
||||
(get_local $0)
|
||||
@ -5840,7 +5868,7 @@
|
||||
)
|
||||
(call $~lib/math/NativeMath.scalbn
|
||||
(get_local $0)
|
||||
(get_local $3)
|
||||
(get_local $2)
|
||||
)
|
||||
)
|
||||
(func $~lib/math/expo2 (; 87 ;) (type $FF) (param $0 f64) (result f64)
|
||||
@ -8667,7 +8695,6 @@
|
||||
(local $5 i64)
|
||||
(local $6 i32)
|
||||
(local $7 i32)
|
||||
(local $8 f64)
|
||||
(block $folding-inner0
|
||||
(set_local $3
|
||||
(i32.wrap/i64
|
||||
@ -8715,11 +8742,14 @@
|
||||
)
|
||||
)
|
||||
(get_local $7)
|
||||
(f64.ne
|
||||
(tee_local $8
|
||||
(get_local $1)
|
||||
(i64.gt_u
|
||||
(i64.and
|
||||
(i64.reinterpret/f64
|
||||
(get_local $1)
|
||||
)
|
||||
(i64.const 9223372036854775807)
|
||||
)
|
||||
(get_local $8)
|
||||
(i64.const 9218868437227405312)
|
||||
)
|
||||
)
|
||||
(i32.const 1)
|
||||
@ -9073,8 +9103,7 @@
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
(local $7 f32)
|
||||
(local $8 i32)
|
||||
(local $7 i32)
|
||||
(block $folding-inner0
|
||||
(set_local $4
|
||||
(i32.and
|
||||
@ -9117,11 +9146,14 @@
|
||||
)
|
||||
)
|
||||
(get_local $3)
|
||||
(f32.ne
|
||||
(tee_local $7
|
||||
(get_local $1)
|
||||
(i32.gt_u
|
||||
(i32.and
|
||||
(i32.reinterpret/f32
|
||||
(get_local $1)
|
||||
)
|
||||
(i32.const 2147483647)
|
||||
)
|
||||
(get_local $7)
|
||||
(i32.const 2139095040)
|
||||
)
|
||||
)
|
||||
(i32.const 1)
|
||||
@ -9177,7 +9209,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(set_local $8
|
||||
(set_local $7
|
||||
(i32.and
|
||||
(get_local $2)
|
||||
(i32.const -2147483648)
|
||||
@ -9409,7 +9441,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(get_local $8)
|
||||
(get_local $7)
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -12544,8 +12576,7 @@
|
||||
(local $7 i64)
|
||||
(local $8 i32)
|
||||
(local $9 i64)
|
||||
(local $10 f64)
|
||||
(local $11 i32)
|
||||
(local $10 i32)
|
||||
(set_local $2
|
||||
(i32.wrap/i64
|
||||
(i64.and
|
||||
@ -12592,11 +12623,14 @@
|
||||
)
|
||||
)
|
||||
(get_local $4)
|
||||
(f64.ne
|
||||
(tee_local $10
|
||||
(get_local $1)
|
||||
(i64.gt_u
|
||||
(i64.and
|
||||
(i64.reinterpret/f64
|
||||
(get_local $1)
|
||||
)
|
||||
(i64.const 9223372036854775807)
|
||||
)
|
||||
(get_local $10)
|
||||
(i64.const 9218868437227405312)
|
||||
)
|
||||
)
|
||||
(i32.const 1)
|
||||
@ -12756,7 +12790,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(set_local $11
|
||||
(set_local $10
|
||||
(i32.wrap/i64
|
||||
(i64.shr_u
|
||||
(get_local $9)
|
||||
@ -13008,7 +13042,7 @@
|
||||
(get_local $0)
|
||||
)
|
||||
(get_local $0)
|
||||
(get_local $11)
|
||||
(get_local $10)
|
||||
)
|
||||
)
|
||||
(func $std/math/test_rem (; 140 ;) (type $FFFFii) (param $0 f64) (param $1 f64) (param $2 f64) (param $3 f64) (param $4 i32) (result i32)
|
||||
@ -13029,9 +13063,8 @@
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
(local $7 i32)
|
||||
(local $8 f32)
|
||||
(local $8 i32)
|
||||
(local $9 i32)
|
||||
(local $10 i32)
|
||||
(set_local $3
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
@ -13076,11 +13109,14 @@
|
||||
)
|
||||
)
|
||||
(get_local $2)
|
||||
(f32.ne
|
||||
(tee_local $8
|
||||
(get_local $1)
|
||||
(i32.gt_u
|
||||
(i32.and
|
||||
(i32.reinterpret/f32
|
||||
(get_local $1)
|
||||
)
|
||||
(i32.const 2147483647)
|
||||
)
|
||||
(get_local $8)
|
||||
(i32.const 2139095040)
|
||||
)
|
||||
)
|
||||
(i32.const 1)
|
||||
@ -13170,7 +13206,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(set_local $9
|
||||
(set_local $8
|
||||
(i32.shr_u
|
||||
(get_local $7)
|
||||
(i32.const 31)
|
||||
@ -13228,7 +13264,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(set_local $10
|
||||
(set_local $9
|
||||
(i32.shr_u
|
||||
(get_local $5)
|
||||
(i32.const 31)
|
||||
@ -13399,7 +13435,7 @@
|
||||
)
|
||||
)
|
||||
(if
|
||||
(get_local $9)
|
||||
(get_local $8)
|
||||
(set_local $1
|
||||
(f32.neg
|
||||
(get_local $1)
|
||||
@ -13471,7 +13507,7 @@
|
||||
(get_local $0)
|
||||
)
|
||||
(get_local $0)
|
||||
(get_local $10)
|
||||
(get_local $9)
|
||||
)
|
||||
)
|
||||
(func $std/math/test_remf (; 142 ;) (type $ffffii) (param $0 f32) (param $1 f32) (param $2 f32) (param $3 f32) (param $4 i32) (result i32)
|
||||
|
Reference in New Issue
Block a user